Class lispa\amos\core\helpers\PermissionHelper

Inheritancelispa\amos\core\helpers\PermissionHelper

Class PermissionHelper Generic functionality of use for permission management

Method Details

findPermissionModelAction() public static method

public static null|string findPermissionModelAction ( $modelName, $action )
$modelName
$action

Depending on the model name and the action passed it will check that it exists between system permits. if this permission exists is returned the string rappresent the permission, else, that the action is an "exception action". if so string represents the permission is returned if no permission match return null

return null|string
  • NULL is for no permission find - STRING reppresent the permission find