From 6c11709cf16861dd3870c050c0c9414d80aa7bb8 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 11 Aug 2016 14:22:15 +0300 Subject: [PATCH] closes #4933 --- src/groups/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/groups/create.js b/src/groups/create.js index 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]]')); }