This commit is contained in:
Barış Soner Uşaklı
2018-05-02 12:43:07 -04:00
parent d42ffdae77
commit 9132743870
3 changed files with 27 additions and 2 deletions

View File

@@ -238,6 +238,7 @@ SocketGroups.create = function (socket, data, callback) {
SocketGroups.delete = isOwner(function (socket, data, callback) {
if (data.groupName === 'administrators' ||
data.groupName === 'registered-users' ||
data.groupName === 'guests' ||
data.groupName === 'Global Moderators') {
return callback(new Error('[[error:not-allowed]]'));
}