|
|
@ -15,7 +15,8 @@ var fs = require('fs'),
|
|
|
|
translator = require('./../public/src/translator'),
|
|
|
|
translator = require('./../public/src/translator'),
|
|
|
|
db = require('./database'),
|
|
|
|
db = require('./database'),
|
|
|
|
plugins = require('./plugins'),
|
|
|
|
plugins = require('./plugins'),
|
|
|
|
user = require('./user');
|
|
|
|
user = require('./user'),
|
|
|
|
|
|
|
|
groups = require('./groups');
|
|
|
|
|
|
|
|
|
|
|
|
(function (Meta) {
|
|
|
|
(function (Meta) {
|
|
|
|
Meta.restartRequired = false;
|
|
|
|
Meta.restartRequired = false;
|
|
|
@ -521,6 +522,15 @@ var fs = require('fs'),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* Assorted */
|
|
|
|
/* Assorted */
|
|
|
|
|
|
|
|
Meta.userOrGroupExists = function(slug, callback) {
|
|
|
|
|
|
|
|
async.parallel([
|
|
|
|
|
|
|
|
async.apply(user.exists, slug),
|
|
|
|
|
|
|
|
async.apply(groups.exists, slug)
|
|
|
|
|
|
|
|
], function(err, results) {
|
|
|
|
|
|
|
|
callback(err, results.some(function(result) { return result }));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Meta.restart = function() {
|
|
|
|
Meta.restart = function() {
|
|
|
|
if (process.send) {
|
|
|
|
if (process.send) {
|
|
|
|
process.send({
|
|
|
|
process.send({
|
|
|
|