Open wuuti opened 8 years ago
I can confirm this in 2.5.1. It seems the defined "Manager Policy" during the "Create User Group" step was completely ignored, and instead resulted in Context policy being applied, just as you've pictured above.
NOTE: In my testing, I did two separate tests:
web,mgr
, and selected desired Policy. Hit Save.web
, and selected desired Policy. Hit Save.Same results for each.
Rechecking the issue if it is still valid. #modxbughunt
Summary
When you create a new user group, the preset policy in the wizard is not set when the group is created. Instead, the policy 'Context' is choosen.
Step to reproduce
Create a new user group. Select 'Administrator' at the 'Manager Policy' Field, add 'mgr' to the contexts field and save the group.
Observed behavior
The group is created, but the context access permissions are not set as expected:
Expected behavior
The manager policy should be set to the chosen policy at the wizard. Otherwise, if you think everything is right and don't realize that only the context policy has been set, you will get puzzled with your permissions.
Environment
Tested on MODX 2.4.2-pl and 2.4.4-pl.