Node.js based forum software built for the modern web
closes #4933
barisusakli6c11709cf168
diff --git a/src/groups/create.js b/src/groups/create.jsindex cf9b1eb784..ffbaf97448 100644--- a/src/groups/create.js+++ b/src/groups/create.js@@ -81,7 +81,7 @@ module.exports = function(Groups) {return callback(new Error('[[error:group-name-too-short]]'));}- if (!Groups.isPrivilegeGroup(data.name) && name.length > (parseInt(meta.config.maximumGroupNameLength, 10) || 255)) {+ if (!Groups.isPrivilegeGroup(name) && name.length > (parseInt(meta.config.maximumGroupNameLength, 10) || 255)) {return callback(new Error('[[error:group-name-too-long]]'));}