authorise() публичный Метод

Perform an ACL check.
См. также: PlatformInterface::authorise()
public authorise ( string $action, string $assetname ) : boolean
$action string The ACL privilege to check, e.g. core.edit
$assetname string The asset name to check, typically the component's name
Результат boolean True if the user is allowed this action
Пример #1
0
 public function authorise($action, $assetname)
 {
     if (is_callable(static::$authorise)) {
         return call_user_func_array(static::$authorise, array($action, $assetname));
     }
     return parent::authorise($action, $assetname);
 }