mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
fixed #2704
This commit is contained in:
@@ -422,6 +422,10 @@ var async = require('async'),
|
||||
}
|
||||
};
|
||||
|
||||
Groups.existsBySlug = function(slug, callback) {
|
||||
db.isObjectField('groupslug:groupname', slug, callback);
|
||||
};
|
||||
|
||||
Groups.create = function(data, callback) {
|
||||
if (data.name.length === 0) {
|
||||
return callback(new Error('[[error:group-name-too-short]]'));
|
||||
|
||||
Reference in New Issue
Block a user