]> BookStack Code Mirror - bookstack/blobdiff - app/Services/PermissionService.php
Merge branch 'master' of git://github.com/Abijeet/BookStack into Abijeet-master
[bookstack] / app / Services / PermissionService.php
index 89f80f9360a878f6224a36853a399c691221a6a1..93787a3e589ba9e6a1d82d2be5030af6ded82c13 100644 (file)
@@ -259,7 +259,7 @@ class PermissionService
         $roleIds = array_map(function($role) {
             return $role->id;
         }, $roles);
-        $this->jointPermission->newQuery()->whereIn('id', $roleIds)->delete();
+        $this->jointPermission->newQuery()->whereIn('role_id', $roleIds)->delete();
     }
 
     /**