1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Moved permission updating to its own tool

And added support for owner changing.
This commit is contained in:
Dan Brown
2021-01-01 17:49:48 +00:00
parent da9083bf1f
commit 99b14621f9
11 changed files with 82 additions and 78 deletions

View 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.
*/