main/core/Manager/Resource/ResourceRestrictionsManager.php
public function isEnded(ResourceNode $resourceNode): bool
    {
        return !empty($resourceNode->getAccessibleUntil()) && $resourceNode->getAccessibleUntil() <= new \DateTime();
    }
public function isEnded(ResourceNode $resourceNode): bool
    {
        return !empty($resourceNode->getAccessibleUntil()) && $resourceNode->getAccessibleUntil() <= new \DateTime();
    }
public function isEnded ( ResourceNode $ resourceNode ) : bool { return ! empty ( $ resourceNode -> getAccessibleUntil ( ) ) && $ resourceNode -> getAccessibleUntil ( ) <= new \ DateTime ( ) ; }
Checks if the access period of the resource is over.

@param ResourceNode $resourceNode

@return bool
Checks if the access period of the resource is over .