From 961f3ac73f7348ab469400588ea3bc9ef70f769a Mon Sep 17 00:00:00 2001 From: shanmukhdutt Date: Wed, 17 Jan 2024 16:51:07 +0530 Subject: [PATCH] Fixed: Duplicate Permission Ids --- src/store/modules/user/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/user/actions.ts b/src/store/modules/user/actions.ts index 02f2eb0d..90facc64 100644 --- a/src/store/modules/user/actions.ts +++ b/src/store/modules/user/actions.ts @@ -30,7 +30,7 @@ const actions: ActionTree = { if (permissionId) serverPermissionsFromRules.push(permissionId); const serverPermissions = await UserService.getUserPermissions({ - permissionIds: serverPermissionsFromRules + permissionIds: [...new Set(serverPermissionsFromRules)] }, token); const appPermissions = prepareAppPermissions(serverPermissions);