main/core/Controller/ResourceController.php
private function checkAccess(MenuAction $action, array $resourceNodes, array $attributes = [])
    {
        $collection = new ResourceCollection($resourceNodes);
        $collection->setAttributes($attributes);

        if (!$this->actionManager->hasPermission($action, $collection)) {
            throw new ResourceAccessException($collection->getErrorsForDisplay(), $collection->getResources());
        }
    }
private function checkAccess(MenuAction $action, array $resourceNodes, array $attributes = [])
    {
        $collection = new ResourceCollection($resourceNodes);
        $collection->setAttributes($attributes);

        if (!$this->actionManager->hasPermission($action, $collection)) {
            throw new ResourceAccessException($collection->getErrorsForDisplay(), $collection->getResources());
        }
    }
private function checkAccess ( MenuAction $ action , array $ resourceNodes , array $ attributes = [ ] ) { $ collection = new ResourceCollection ( $ resourceNodes ) ; $ collection -> setAttributes ( $ attributes ) ; if ( ! $ this -> actionManager -> hasPermission ( $ action , $ collection ) ) { throw new ResourceAccessException ( $ collection -> getErrorsForDisplay ( ) , $ collection -> getResources ( ) ) ; } }
Checks the current user can execute the action on the requested nodes.

@param MenuAction $action
@param array      $resourceNodes
@param array      $attributes
Checks the current user can execute the action on the requested nodes .