For a module I am working on I was in need of permissions settings that I couldn’t solve with standard modx permissions. So instead of finishing the module I wrote a plugin that allows for custom permissions in the manager.
I would have liked to extend the permissions via the role management but unfortunately there’s no events to tap into for that. Instead using the plugin you can set custom permissions on a per user basis. Just to clarify things... These custom permissions only have value if you have a snippet or a module that uses them. They are totally separate from the rest of the manager.
Permissions names (variables) are set in the plugin configuration. Once set they will appear as custom settings in the "Create/edit user" form. To check these permissions in a script you use the standard $modx->hasPermission() function. Anyway for more info about installing and usage read the comments in the file...
I’m now using it for a simple table editor module so I can set permissions on who can edit the configuration and who can only edit table content.
Comment away...:)
I’ll definitely look into that (pretty interresting !), and report back there... thanks for sharing
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id