mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +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) {
 | 
					function isOwner(next) {
 | 
				
			||||||
	return function (socket, data, callback) {
 | 
						return function (socket, data, callback) {
 | 
				
			||||||
		async.parallel({
 | 
							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)
 | 
								isOwner: async.apply(groups.ownership.isOwner, socket.uid, data.groupName)
 | 
				
			||||||
		}, function(err, results) {
 | 
							}, function(err, results) {
 | 
				
			||||||
			if (err || (!isOwner && !results.isAdmin)) {
 | 
								if (err || (!isOwner && !results.isAdmin)) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user