|
|
|
@ -19,14 +19,6 @@ module.exports = function(SocketUser) {
|
|
|
|
|
|
|
|
|
|
|
|
var type = data.type;
|
|
|
|
var type = data.type;
|
|
|
|
|
|
|
|
|
|
|
|
// if (type === 'default') {
|
|
|
|
|
|
|
|
// type = null;
|
|
|
|
|
|
|
|
// } else if (type === 'uploaded') {
|
|
|
|
|
|
|
|
// type = 'uploadedpicture';
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// return callback(new Error('[[error:invalid-image-type, ' + ['default', 'uploadedpicture'].join(', ') + ']]'));
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async.waterfall([
|
|
|
|
async.waterfall([
|
|
|
|
function (next) {
|
|
|
|
function (next) {
|
|
|
|
user.isAdminOrSelf(socket.uid, data.uid, next);
|
|
|
|
user.isAdminOrSelf(socket.uid, data.uid, next);
|
|
|
|
|