]> BookStack Code Mirror - bookstack/blobdiff - app/Services/PermissionService.php
Finished refactor of entity repos
[bookstack] / app / Services / PermissionService.php
index 0db2d1b5e94d7f16fd7973c765331bcf3c925fc7..467bf95da69f7f6dbe35361a2a595669cb977bc0 100644 (file)
@@ -516,42 +516,6 @@ ORDER BY draft desc, priority asc";
         return $this->db->select($query, array_replace($roleValues, $params));
     }
 
-    /**
-     * Add restrictions for a page query
-     * @param $query
-     * @param string $action
-     * @return mixed
-     */
-    public function enforcePageRestrictions($query, $action = 'view')
-    {
-        // TODO - remove this
-        return $this->enforceEntityRestrictions('page', $query, $action);
-    }
-
-    /**
-     * Add on permission restrictions to a chapter query.
-     * @param $query
-     * @param string $action
-     * @return mixed
-     */
-    public function enforceChapterRestrictions($query, $action = 'view')
-    {
-        // TODO - remove this
-        return $this->enforceEntityRestrictions('chapter', $query, $action);
-    }
-
-    /**
-     * Add restrictions to a book query.
-     * @param $query
-     * @param string $action
-     * @return mixed
-     */
-    public function enforceBookRestrictions($query, $action = 'view')
-    {
-        // TODO - remove this
-        return $this->enforceEntityRestrictions('book', $query, $action);
-    }
-
     /**
      * Add restrictions for a generic entity
      * @param string $entityType