##// END OF EJS Templates
fixed auth bug
marcink -
r333:f5f290d6 default
parent child Browse files
Show More
@@ -282,7 +282,9 b' class PermsFunction(object):'
282 self.repo_name = None
282 self.repo_name = None
283
283
284 def __call__(self, check_Location=''):
284 def __call__(self, check_Location=''):
285 user = session['hg_app_user']
285 user = session.get('hg_app_user', False)
286 if not user:
287 return False
286 self.user_perms = user.permissions
288 self.user_perms = user.permissions
287 self.granted_for = user.username
289 self.granted_for = user.username
288 log.debug('checking %s %s', self.__class__.__name__, self.required_perms)
290 log.debug('checking %s %s', self.__class__.__name__, self.required_perms)
General Comments 0
You need to be logged in to leave comments. Login now