limiting user and group creation so that their slugs can't intersect.

This commit is contained in:
Julian Lam
2014-05-22 10:21:01 -04:00
parent 51e07e197b
commit 8a510c340b
4 changed files with 18 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
var async = require('async'),
winston = require('winston'),
user = require('./user'),
meta = require('./meta'),
db = require('./database'),
utils = require('../public/src/utils'),
@@ -182,7 +183,7 @@
var system = true;
}
Groups.exists(name, function (err, exists) {
meta.userOrGroupExists(name, function (err, exists) {
if (err) {
return callback(err);
}