mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	tmp fix for nested if
This commit is contained in:
		| @@ -761,9 +761,11 @@ var bcrypt = require('bcrypt'), | ||||
|  | ||||
| 	User.isAdministrator = function(uid, callback) { | ||||
| 		groups.getGidFromName('Administrators', function(err, gid) { | ||||
| 			groups.isMember(uid, gid, function(err, isAdmin) { | ||||
| 				callback(err, isAdmin); | ||||
| 			}); | ||||
| 			if(err) { | ||||
| 				return callback(err); | ||||
| 			} | ||||
|  | ||||
| 			groups.isMember(uid, gid, callback); | ||||
| 		}); | ||||
| 	}; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user