Add authorization rules to ninja, where each auth point maps to a set of allowed MayI rules. More...
Public Member Functions | |
__construct () | |
Add the event handler for this object. | |
get_acl () | |
Let's expose the parsed acl so that it can be tested. | |
populate_mayi () | |
On system.ready, add this class as a MayI constraint. | |
run ($action, $env, &$messages, &$perfdata) | |
Execute a action. |
Add authorization rules to ninja, where each auth point maps to a set of allowed MayI rules.
user_mayi_authorization::get_acl | ( | ) |
Let's expose the parsed acl so that it can be tested.
user_mayi_authorization::run | ( | $ | action, | |
$ | env, | |||
&$ | messages, | |||
&$ | perfdata | |||
) |
Execute a action.
$action | name of the action, as "path.to.resource:action" | |
$env | environment variables for the constraints | |
$messages | referenced array to add messages to | |
$perfdata | referenced array to add performance data to |