0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-22 15:57:29 +00:00

Refactored notification showing and global view data

This commit is contained in:
Dan Brown 2019-09-19 15:12:10 +01:00
parent 60d0f96cd7
commit 2a2cc858f0
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
15 changed files with 102 additions and 58 deletions
app/Http/Controllers

View file

@ -380,7 +380,7 @@ class BookController extends Controller
$book = $this->bookRepo->getBySlug($bookSlug);
$this->checkOwnablePermission('restrictions-manage', $book);
$this->bookRepo->updateEntityPermissionsFromRequest($request, $book);
session()->flash('success', trans('entities.books_permissions_updated'));
$this->showSuccessNotification(trans('entities.books_permissions_updated'));
return redirect($book->getUrl());
}