From 9af2fac9a083d8e5ea0bb39f6b173fbc8b92d26a Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 27 Oct 2023 17:49:31 +0300 Subject: [PATCH] [angular-16 | DONE | FIXED]: Create group was hidden for curators because of new dynamic types. --- login/utils/helper.class.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login/utils/helper.class.ts b/login/utils/helper.class.ts index 7ade96d7..8fdd6229 100644 --- a/login/utils/helper.class.ts +++ b/login/utils/helper.class.ts @@ -112,7 +112,7 @@ export class Session { } public static isCurator(type: string, user: User): boolean { - return stakeholderTypes.find(stakeholderType => stakeholderType.value == type) && this.isTypeCurator(type, user); + return (type === 'community' || stakeholderTypes.find(stakeholderType => stakeholderType.value == type)) && this.isTypeCurator(type, user); } public static isPortalAdministrator(user: User): boolean {