chore: removed global eslint references
This commit is contained in:
		@@ -2,8 +2,6 @@
 | 
			
		||||
 | 
			
		||||
/* global appdata, rights */
 | 
			
		||||
 | 
			
		||||
const moment = require('moment-timezone')
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Authentication middleware
 | 
			
		||||
 *
 | 
			
		||||
@@ -34,12 +32,6 @@ module.exports = (req, res, next) => {
 | 
			
		||||
    return res.render('error-forbidden')
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Set i18n locale
 | 
			
		||||
 | 
			
		||||
  req.i18n.changeLanguage(req.user.lang)
 | 
			
		||||
  res.locals.userMoment = moment
 | 
			
		||||
  res.locals.userMoment.locale(req.user.lang)
 | 
			
		||||
 | 
			
		||||
  // Expose user data
 | 
			
		||||
 | 
			
		||||
  res.locals.user = req.user
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user