Scalr\Api\Rest\Controller\ApiController::hasPermissions PHP Méthode

hasPermissions() public méthode

hasPermissions(object $obj, bool $modify = false) hasPermissions(int $roleId, string $permissionId = null)
public hasPermissions ( ) : boolean
Résultat boolean Returns TRUE if the authenticated user has access or FALSE otherwise
    public function hasPermissions()
    {
        return call_user_func_array([$this->app, 'hasPermissions'], func_get_args());
    }