PHP Interface ManaPHP\AuthorizationInterface

Datei anzeigen Open project: manaphp/manaphp

Public Methods

Method Description
isAllowed ( string $permission, string $userId = null ) : boolean Check whether a user is allowed to access a permission

Method Details

isAllowed() public method

Check whether a user is allowed to access a permission
public isAllowed ( string $permission, string $userId = null ) : boolean
$permission string
$userId string
return boolean