Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -259,7 +259,7 @@ class PermissionService | ... | @@ -259,7 +259,7 @@ class PermissionService |
| 259 | $roleIds = array_map(function($role) { | 259 | $roleIds = array_map(function($role) { |
| 260 | return $role->id; | 260 | return $role->id; |
| 261 | }, $roles); | 261 | }, $roles); |
| 262 | - $this->jointPermission->newQuery()->whereIn('id', $roleIds)->delete(); | 262 | + $this->jointPermission->newQuery()->whereIn('role_id', $roleIds)->delete(); |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | /** | 265 | /** | ... | ... |
-
Please register or sign in to post a comment