Hello Guys,
I have a strange bug.
A user with the administrator policy can't create a new resource. The user isn't sudo.
After some debugging i found the file modaccessibleobject.class.php and looked to the function "checkPolicy".
I've added there a dirty (temporary) hack.
if($criteria == 'administrator') return true;
MODX want the administrator permission but it isn't inside the policy.
Someone knows a nice fix for that?
-
☆ A M B ☆
- 24,524 Posts
Check the policy connected to the group. Make sure it has permissions to create resources. Does this involve multiple contexts?
I've added the administrator policy on all context and selected all permissions.
-
☆ A M B ☆
- 24,524 Posts
Does this happen only when trying to create a new resource in the Tree top-level? Check the udperms_allowroot setting in System Settings.
It happens on every level. Only when i'm creating a resource, everything else works perfectly.
Already created a new context but the same problem.
Created a new user with a import of permissions from an existing and working site but the same problem.