fix: isPrivilegeGroup not capturing admin privileges

isekai-main
Julian Lam 1 year ago
parent 65e16e9f15
commit d13e7cd36c

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

Loading…
Cancel
Save