mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Addmin archive fixed
This commit is contained in:
parent
ec81a8b393
commit
fc089927fa
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ export class UsersService {
|
|||
const result = await this.groupPermissionsUtilityService.getRoleUsersList(USER_ROLE.ADMIN, organizationId);
|
||||
const isAdmin = result.find((userItem) => userItem.id === user.id);
|
||||
|
||||
if (isAdmin && result.length <= 2) throw new BadRequestException('Atleast one active admin is required');
|
||||
if (isAdmin && result.length < 2) throw new BadRequestException('Atleast one active admin is required');
|
||||
}
|
||||
|
||||
async hasGroup(user: User, role: USER_ROLE, organizationId?: string, manager?: EntityManager): Promise<boolean> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue