Merge pull request #3792 from drlogout/master

Fixed wrong method name in socket.io/groups.js from isAdmin to isAdmi…
v1.18.x
Barış Soner Uşaklı 9 years ago
commit 051c5077eb

@ -63,7 +63,7 @@ SocketGroups.leave = function(socket, data, callback) {
function isOwner(next) {
return function (socket, data, callback) {
async.parallel({
isAdmin: async.apply(user.isAdmin, socket.uid),
isAdmin: async.apply(user.isAdministrator, socket.uid),
isOwner: async.apply(groups.ownership.isOwner, socket.uid, data.groupName)
}, function(err, results) {
if (err || (!isOwner && !results.isAdmin)) {

Loading…
Cancel
Save