Hi Steve,
Thanks for the detailed series of steps to re-create what you are seeing. Your first post does not mention the "DepartmentSummary" financial statement or the "RangeDept" SmartSheet command, so Dan and I both started with different statements that do not exhibit a problem. Bugs are always obvious when you find them (and know how to create them).
The actual problem is:
"RangeDept" does not expand as expected when department restrictions are enabled and the user has been granted access to a range of departments but not the individual departments that are included in the range.
But the programmer can argue that the program is working as they expected, since access has not been granted to the individual department numbers, only the summary total (and in the DepartmentSummary statement, the summary total is correctly calculated and displayed).
Perhaps the correct method of changing the program so it works the way you and your client would prefer, would be to automatically enable all the individual departments when a department range, wildcard or list is chosen. The next question would be, if you deselect an individual department, does the program need to scan all the ranges and disable all the ranges that include the department to be hidden?
For consistency (especially so you don't see the kind of problem you describe here), I think the answer has to be "yes". However, this means that it will become impossible to get the kind of result you see now - where a user is allowed to see a summary total, but not the department details that go into that total. That might be a desirable thing at some sites.
This also raises a question when a new department is added. If the new department is in a range, should it be automatically enabled? The argument would be "No" - the range should be disabled - to ensure the security is set the way the user desires (and to be consistent with the security handling elsewhere in Adagio).
So, in the interim, while these decisions are decided and implemented, your client will need to enable the individual departments if they want the user to be able to see the individual departments on expansion of "RangeDept".
I'll get R&D involved in this discussion.
Thanks for bringing this to our attention and I apologize for the long reply.