|
|
@ -240,7 +240,7 @@ module.exports = function(Groups) {
|
|
|
|
if (!groupData) {
|
|
|
|
if (!groupData) {
|
|
|
|
return callback();
|
|
|
|
return callback();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (parseInt(groupData.hidden, 10) === 1 && parseInt(groupData.memberCount, 10) === 0) {
|
|
|
|
if (Groups.isPrivilegeGroup(groupName) && parseInt(groupData.memberCount, 10) === 0) {
|
|
|
|
Groups.destroy(groupName, next);
|
|
|
|
Groups.destroy(groupName, next);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (parseInt(groupData.hidden, 10) !== 1) {
|
|
|
|
if (parseInt(groupData.hidden, 10) !== 1) {
|
|
|
|