X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/573d692a59d97f34e171a7d42527de36a5b8a014..refs/pull/5793/head:/app/Users/Controllers/UserApiController.php diff --git a/app/Users/Controllers/UserApiController.php b/app/Users/Controllers/UserApiController.php index 28c4a3876..9134b3cc1 100644 --- a/app/Users/Controllers/UserApiController.php +++ b/app/Users/Controllers/UserApiController.php @@ -125,7 +125,7 @@ class UserApiController extends ApiController { $data = $this->validate($request, $this->rules($id)['update']); $user = $this->userRepo->getById($id); - $this->userRepo->update($user, $data, userCan(\BookStack\Permissions\Permission::UsersManage)); + $this->userRepo->update($user, $data, userCan(Permission::UsersManage)); $this->singleFormatter($user); return response()->json($user);