mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
moved user search to its own file
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
var async = require('async'),
|
||||
user = require('../user'),
|
||||
topics = require('../topics'),
|
||||
@@ -93,8 +95,9 @@ SocketUser.updateProfile = function(socket, data, callback) {
|
||||
if(err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if(!isAdmin) {
|
||||
return callback(new Error('not allowed!'))
|
||||
return callback(new Error('not allowed!'));
|
||||
}
|
||||
|
||||
user.updateProfile(data.uid, data, callback);
|
||||
|
||||
Reference in New Issue
Block a user