X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/2a2cc858f0f95c606f2ad2542f915d3bd761775f..refs/pull/2023/head:/app/Http/Controllers/PermissionController.php diff --git a/app/Http/Controllers/PermissionController.php b/app/Http/Controllers/PermissionController.php index b8ca5a646..148ae5cd6 100644 --- a/app/Http/Controllers/PermissionController.php +++ b/app/Http/Controllers/PermissionController.php @@ -53,7 +53,7 @@ class PermissionController extends Controller ]); $this->permissionsRepo->saveNewRole($request->all()); - $this->showSuccessNotification( trans('settings.role_create_success')); + $this->showSuccessNotification(trans('settings.role_create_success')); return redirect('/settings/roles'); } @@ -90,7 +90,7 @@ class PermissionController extends Controller ]); $this->permissionsRepo->updateRole($id, $request->all()); - $this->showSuccessNotification( trans('settings.role_update_success')); + $this->showSuccessNotification(trans('settings.role_update_success')); return redirect('/settings/roles'); } @@ -124,11 +124,11 @@ class PermissionController extends Controller try { $this->permissionsRepo->deleteRole($id, $request->get('migrate_role_id')); } catch (PermissionsException $e) { - $this->showErrorNotification( $e->getMessage()); + $this->showErrorNotification($e->getMessage()); return redirect()->back(); } - $this->showSuccessNotification( trans('settings.role_delete_success')); + $this->showSuccessNotification(trans('settings.role_delete_success')); return redirect('/settings/roles'); } }