main/core/Manager/Resource/ResourceActionManager.php
public function hasPermission(MenuAction $action, ResourceCollection $resourceNodes): bool
    {
        return $this->authorization->isGranted($action->getDecoder(), $resourceNodes);
    }
public function hasPermission(MenuAction $action, ResourceCollection $resourceNodes): bool
    {
        return $this->authorization->isGranted($action->getDecoder(), $resourceNodes);
    }
public function hasPermission ( MenuAction $ action , ResourceCollection $ resourceNodes ) : bool { return $ this -> authorization -> isGranted ( $ action -> getDecoder ( ) , $ resourceNodes ) ; }
Checks if the current user can execute an action on a resource.

@param MenuAction         $action
@param ResourceCollection $resourceNodes

@return bool
Checks if the current user can execute an action on a resource .