mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-24 22:21:13 +02:00
dont check maximum group name length if it is a privilege group
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user