We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f4260f + f99c8ff commit 441e46eCopy full SHA for 441e46e
1 file changed
app/Services/PermissionService.php
@@ -259,7 +259,7 @@ protected function deleteManyJointPermissionsForRoles($roles)
259
$roleIds = array_map(function($role) {
260
return $role->id;
261
}, $roles);
262
- $this->jointPermission->newQuery()->whereIn('id', $roleIds)->delete();
+ $this->jointPermission->newQuery()->whereIn('role_id', $roleIds)->delete();
263
}
264
265
/**
0 commit comments