Merge branch 'master' into develop

This commit is contained in:
Barış Soner Uşaklı
2023-08-24 14:36:25 -04:00
2 changed files with 17 additions and 1 deletions

View File

@@ -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);
};