mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
fix organization scope validation
This commit is contained in:
parent
a2e4d31bd3
commit
117175fa61
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ export class UsersService {
|
|||
const groupsToRemove = groupPermissions.filter((permission) => removeGroups.includes(permission.id));
|
||||
await Promise.all(
|
||||
groupsToRemove.map(async (group) => {
|
||||
validateDeleteGroupUserOperation(group, user.organizationId);
|
||||
validateDeleteGroupUserOperation(group, orgId);
|
||||
const groupUser = group.groupUsers[0];
|
||||
this.groupPermissionsService.deleteGroupUser(groupUser.id, manager);
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue