dolibarr 25.0.0-alpha
AccessRuleEvaluator Interface Reference

Decides whether a user may access an object according to an access rule. More...

Inheritance diagram for AccessRuleEvaluator:

Public Member Functions

 evaluate (User $user, CommonObject $obj)
 

Detailed Description

Decides whether a user may access an object according to an access rule.

Definition at line 27 of file AccessRuleEvaluator.class.php.

Member Function Documentation

◆ evaluate()

AccessRuleEvaluator::evaluate ( User $user,
CommonObject $obj )
Parameters
User$userUser asking for the access
CommonObject$objObject to access, it provides the module and element of the permissions
Returns
bool True when the access is granted, false otherwise, including on failure

Implemented in AccessPolicyEvaluator.


The documentation for this interface was generated from the following file: