Skip to content

Node.js based forum software built for the modern web

set system to true/false

barisusaklia94e676043ed
diff --git a/src/groups/create.js b/src/groups/create.js
index faabb9c01a..acbf27bbdf 100644
--- a/src/groups/create.js
+++ b/src/groups/create.js
@@ -12,9 +12,7 @@ module.exports = function(Groups) {
return callback(new Error('[[error:group-name-too-short]]'));
}
- if (data.name === 'administrators' || data.name === 'registered-users' || Groups.isPrivilegeGroup(data.name)) {
- var system = true;
- }
+ var system = data.name === 'administrators' || data.name === 'registered-users' || Groups.isPrivilegeGroup(data.name);
meta.userOrGroupExists(data.name, function (err, exists) {
if (err) {