1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +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

@@ -62,14 +62,6 @@ class ChapterRepo
return $chapter;
}
/**
* Update the permissions of a chapter.
*/
public function updatePermissions(Chapter $chapter, bool $restricted, Collection $permissions = null)
{
$this->baseRepo->updatePermissions($chapter, $restricted, $permissions);
}
/**
* Remove a chapter from the system.
* @throws Exception