dont check maximum group name length if it is a privilege group

This commit is contained in:
barisusakli
2016-08-11 09:52:05 +03:00
parent 973e208329
commit 73c3da1a83
3 changed files with 9 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ Categories.update = function(socket, data, callback) {
};
Categories.setPrivilege = function(socket, data, callback) {
if(!data) {
if (!data) {
return callback(new Error('[[error:invalid-data]]'));
}
@@ -72,7 +72,7 @@ Categories.getPrivilegeSettings = function(socket, cid, callback) {
};
Categories.copyPrivilegesToChildren = function(socket, cid, callback) {
categories.getCategories([cid], socket.uid, function(err, categories) {
categories.getCategories([cid], socket.uid, function(err, categories) {
if (err) {
return callback(err);
}

View File

@@ -1,8 +1,9 @@
"use strict";
var async = require('async');
var groups = require('../../groups'),
Groups = {};
var groups = require('../../groups');
var Groups = {};
Groups.create = function(socket, data, callback) {
if (!data) {