user_mayi_authorization Class Reference

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.

Detailed Description

Add authorization rules to ninja, where each auth point maps to a set of allowed MayI rules.


Member Function Documentation

user_mayi_authorization::get_acl (  ) 

Let's expose the parsed acl so that it can be tested.

Returns:
array
user_mayi_authorization::run ( action,
env,
&$  messages,
&$  perfdata 
)

Execute a action.

Parameters:
$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

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1