mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Started work on exposing the role system as editable
This commit is contained in:
@ -81,6 +81,7 @@ abstract class Controller extends BaseController
|
||||
protected function checkPermission($permissionName)
|
||||
{
|
||||
if (!$this->currentUser || !$this->currentUser->can($permissionName)) {
|
||||
dd($this->currentUser);
|
||||
$this->showPermissionError();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user