Skip to content

Commit

Permalink
Merge pull request #178 from shanmukhdutt/fix/duplicate-permission-ids
Browse files Browse the repository at this point in the history
Added: Support to Remove Duplicate Permission Ids passed in the API request.
  • Loading branch information
ravilodhi authored Jan 19, 2024
2 parents 9135e01 + 6f36002 commit 1fc84f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const actions: ActionTree<UserState, RootState> = {
if (permissionId) serverPermissionsFromRules.push(permissionId);

const serverPermissions = await UserService.getUserPermissions({
permissionIds: serverPermissionsFromRules
permissionIds: [...new Set(serverPermissionsFromRules)]
}, token);
const appPermissions = prepareAppPermissions(serverPermissions);

Expand Down

0 comments on commit 1fc84f7

Please sign in to comment.