]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Repos/PageRepo.php
Moved permission updating to its own tool
[bookstack] / app / Entities / Repos / PageRepo.php
index f664d212681e133f645d91a0933245018625fdec..8840c06dba49c38d2c9058571fcb24370da1bb0f 100644 (file)
@@ -383,14 +383,6 @@ class PageRepo
         return $parentClass::visible()->where('id', '=', $entityId)->first();
     }
 
-    /**
-     * Update the permissions of a page.
-     */
-    public function updatePermissions(Page $page, bool $restricted, Collection $permissions = null)
-    {
-        $this->baseRepo->updatePermissions($page, $restricted, $permissions);
-    }
-
     /**
      * Change the page's parent to the given entity.
      */