BookStack\Entity::hasActiveRestriction PHP Méthode

hasActiveRestriction() public méthode

Check if this entity has live (active) restrictions in place.
public hasActiveRestriction ( $role_id, $action ) : boolean
$role_id
$action
Résultat boolean
    public function hasActiveRestriction($role_id, $action)
    {
        return $this->getRawAttribute('restricted') && $this->hasRestriction($role_id, $action);
    }