-
- 116 Posts
Hello,
is possible to create plugin, that will run when i start any module in manager? Tried to find something like OnMOduleStart event, but I didn’t success....
Anyone know how to... ?
--
John
@theboxer
-
- 1,336 Posts
There’s this one ’OnManagerPageInit’ which is probably the closest, you’d have to check the action for a module action(106-113), what is it your trying to do BTW?
Use MODx, or the cat gets it!
-
- 116 Posts
i am trying to make better manager permissions - can allow or deny access to specific module. If i uncheck some module in manager permissions, he will not see this module in module list and he can’t start this module. So I want to run plugin on module start to check if manager, that is curently logged in have rights to start this module or not. This is only security, if someone want to go direct to start module page (I removec unaccessible modules from menu list).
-- I don’t want to edit all instaled modules, to add some rows with checking permissions code, so I think about to do it via plugin...
--
John
@theboxer
You can use the regular security system to do this; assign the module to a group (checkboxes at the bottom of the module editing) and only manager users in the corresponding manager user group can run it.
-
- 116 Posts
ou :-D i didn’t see it, ty
--
John
@theboxer