X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/46c01ecba25e5e925e72f65b182fa94a1fa17703..refs/pull/261/head:/app/Entity.php diff --git a/app/Entity.php b/app/Entity.php index 6aeb66481..e5dd04bf2 100644 --- a/app/Entity.php +++ b/app/Entity.php @@ -94,17 +94,6 @@ class Entity extends Ownable ->where('action', '=', $action)->count() > 0; } - /** - * Check if this entity has live (active) restrictions in place. - * @param $role_id - * @param $action - * @return bool - */ - public function hasActiveRestriction($role_id, $action) - { - return $this->getRawAttribute('restricted') && $this->hasRestriction($role_id, $action); - } - /** * Get the entity jointPermissions this is connected to. * @return \Illuminate\Database\Eloquent\Relations\MorphMany @@ -176,5 +165,11 @@ class Entity extends Ownable */ public function entityRawQuery(){return '';} + /** + * Get the url of this entity + * @param $path + * @return string + */ + public function getUrl($path){return '/';} }