1
0
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:
Dan Brown
2016-02-26 23:44:02 +00:00
parent 54e3122540
commit a54be85185
6 changed files with 146 additions and 0 deletions

View File

@ -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();
}