main/core/Manager/Resource/ResourceRestrictionsManager.php
public function isGranted(ResourceNode $resourceNode, array $userRoles): bool
    {
        return $this->hasRights($resourceNode, $userRoles)
            && $resourceNode->isActive()
            && $resourceNode->isPublished()
            && ($this->isStarted($resourceNode) && !$this->isEnded($resourceNode))
            && $this->isUnlocked($resourceNode)
            && $this->isIpAuthorized($resourceNode);
    }
public function isGranted(ResourceNode $resourceNode, array $userRoles): bool
    {
        return $this->hasRights($resourceNode, $userRoles)
            && $resourceNode->isActive()
            && $resourceNode->isPublished()
            && ($this->isStarted($resourceNode) && !$this->isEnded($resourceNode))
            && $this->isUnlocked($resourceNode)
            && $this->isIpAuthorized($resourceNode);
    }
public function isGranted ( ResourceNode $ resourceNode , array $ userRoles ) : bool { return $ this -> hasRights ( $ resourceNode , $ userRoles ) && $ resourceNode -> isActive ( ) && $ resourceNode -> isPublished ( ) && ( $ this -> isStarted ( $ resourceNode ) && ! $ this -> isEnded ( $ resourceNode ) ) && $ this -> isUnlocked ( $ resourceNode ) && $ this -> isIpAuthorized ( $ resourceNode ) ; }
Checks access restrictions of a ResourceNodes.

@param ResourceNode $resourceNode
@param Role[]       $userRoles

@return bool
Checks access restrictions of a ResourceNodes .