mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	fixes login/register and auth routes in relative path install
This commit is contained in:
		@@ -20,7 +20,7 @@ var nconf = require('nconf'),
 | 
			
		||||
	Admin.isAdmin = function (req, res, next) {
 | 
			
		||||
		user.isAdministrator((req.user && req.user.uid) ? req.user.uid : 0, function (err, isAdmin) {
 | 
			
		||||
			if (!isAdmin) {
 | 
			
		||||
				 res.redirect('/403');
 | 
			
		||||
				 res.redirect(403, '/403');
 | 
			
		||||
			} else {
 | 
			
		||||
				next();
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user