mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
Fixed wrong method name in socket.io/groups.js from isAdmin to isAdministrator
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user