]>
BookStack Code Mirror - bookstack/blobdiff - app/Entities/Controllers/PageController.php
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Permissions: Cleanup after review of enum implementation PR
[bookstack]
/
app
/
Entities
/
Controllers
/
PageController.php
diff --git
a/app/Entities/Controllers/PageController.php
b/app/Entities/Controllers/PageController.php
index d4bde300b1d8acbb851a166f16bc42c08ae002e7..67ecb0bb3773bfdb5681b6272d899774b19f0d98 100644
(file)
--- a/
app/Entities/Controllers/PageController.php
+++ b/
app/Entities/Controllers/PageController.php
@@
-342,7
+342,7
@@
class PageController extends Controller
$this->showSuccessNotification(trans('entities.pages_delete_draft_success'));
- if ($chapter && userCan(
'view'
, $chapter)) {
+ if ($chapter && userCan(
Permission::ChapterView
, $chapter)) {
return redirect($chapter->getUrl());
}