Skip to content

Commit

Permalink
fix: isPrivilegeGroup not capturing admin privileges
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Aug 24, 2023
1 parent 65e16e9 commit d13e7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groups/index.js
Expand Up @@ -55,7 +55,7 @@ Groups.removeEphemeralGroups = function (groups) {
return groups;
};

const isPrivilegeGroupRegex = /^cid:\d+:privileges:[\w\-:]+$/;
const isPrivilegeGroupRegex = /^cid:(?:\d+|admin):privileges:[\w\-:]+$/;
Groups.isPrivilegeGroup = function (groupName) {
return isPrivilegeGroupRegex.test(groupName);
};
Expand Down

1 comment on commit d13e7cd

@barisusakli
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😨 d5c8bf9

Please sign in to comment.