Core/Framework/Amvc/AbstractMvc.php
protected function checkAccess($permission): bool
    {
        return $this->app->core->user->permissions[$this->app->getName()]->allowedTo($permission);
    }
protected function checkAccess($permission): bool
    {
        return $this->app->core->user->permissions[$this->app->getName()]->allowedTo($permission);
    }
protected function checkAccess ( $ permission ) : bool { return $ this -> app -> core -> user -> permissions [ $ this -> app -> getName ( ) ] -> allowedTo ( $ permission ) ; }
Checks the current users permissions against one or more permissions

@param string|array $perm
One permission by it'S name or an array of permissionnames

@return bool
Checks the current users permissions against one or more permissions