diff --git a/src/groups/index.js b/src/groups/index.js index a66e34c6b3..d9549ba805 100644 --- a/src/groups/index.js +++ b/src/groups/index.js @@ -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); };