]>
BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Controller.php
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Aligned page edit controller method data usage
[bookstack]
/
app
/
Http
/
Controllers
/
Controller.php
diff --git
a/app/Http/Controllers/Controller.php
b/app/Http/Controllers/Controller.php
index 13a86f6f7c78672ef99cdab9dedb566d1b148cec..d616974c6fd797c6bc063ca5989501c0a0f4024f 100644
(file)
--- a/
app/Http/Controllers/Controller.php
+++ b/
app/Http/Controllers/Controller.php
@@
-54,6
+54,7
@@
abstract class Controller extends BaseController
protected function showPermissionError()
{
$message = request()->wantsJson() ? trans('errors.permissionJson') : trans('errors.permission');
+
throw new NotifyException($message, '/', 403);
}