-
-
Notifications
You must be signed in to change notification settings - Fork 427
Description
Describe the bug
When editing tree permissions for a given user (or user group, although not tested), the "Show Exceptions" checkbox appears to behave as if it were "Only Show Exceptions".
In addition, it is checked by default; therefore, by default, only exceptions are shown. Because of this, a user might think that default policies which are not exceptions do not exist.
e.g. suppose the default policy is "Allow". If I want to change it to "Deny" for a tree, I'd have to the uncheck "Show Exceptions" checkbox to see the trees with default value in the list, which does not make sense.
To Reproduce
Steps to reproduce the behavior:
- Go to Configuration -> Users -> (user) -> Tree Permissions;
- Notice the "Show Exceptions" checkbox is checked by default;
- Default policies are not shown. Only exceptions appear, if any.
- Uncheck the "Show Exceptions" checkbox;
- All the policies appear, including exceptions.
Expected behavior
When the "Show Exceptions" checkbox is checked, all values should be shown, not just the exceptions.
When presented with a list of "search results" and a checkbox saying "show X", the idea I get as a user is that having that checkbox marked will cause the results to show "X" in addition to other things. However, what is happening is that when the checkbox is marked, only X are shown. Therefore, the checkbox should read "Show Exceptions Only".
Also, I would argue that it should be unchecked by default, as to show everything explicitly.
Screenshots
-
"Show exceptions" is checked. Exceptions would appear if there were any. The problem is that policies with the default value are hidden:

-
When "show exceptions" is unckecked, default value appears for each tree which does not have an expection:

Additional context
Tested on 1.2.11 and 1.2.16.