BookStack\Entity::hasRestriction PHP Méthode

hasRestriction() public méthode

Check if this entity has a specific restriction set against it.
public hasRestriction ( $role_id, $action ) : boolean
$role_id
$action
Résultat boolean
    public function hasRestriction($role_id, $action)
    {
        return $this->permissions()->where('role_id', '=', $role_id)->where('action', '=', $action)->count() > 0;
    }