Skip to content

Commit f99c8ff

Browse files
committed
Fixed role permission removal bug
1 parent 75981c2 commit f99c8ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Services/PermissionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ protected function deleteManyJointPermissionsForRoles($roles)
259259
$roleIds = array_map(function($role) {
260260
return $role->id;
261261
}, $roles);
262-
$this->jointPermission->newQuery()->whereIn('id', $roleIds)->delete();
262+
$this->jointPermission->newQuery()->whereIn('role_id', $roleIds)->delete();
263263
}
264264

265265
/**

0 commit comments

Comments
 (0)