]> BookStack Code Mirror - bookstack/blobdiff - app/Users/Controllers/UserApiController.php
Permissions: Cleanup after review of enum implementation PR
[bookstack] / app / Users / Controllers / UserApiController.php
index 28c4a387619de7d5ef2e118f21f6828d8e303843..9134b3cc13b32768a00b25ec68dde42ed7398d1b 100644 (file)
@@ -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);