Show More
@@ -282,7 +282,9 b' class PermsFunction(object):' | |||
|
282 | 282 | self.repo_name = None |
|
283 | 283 | |
|
284 | 284 | def __call__(self, check_Location=''): |
|
285 |
user = session |
|
|
285 | user = session.get('hg_app_user', False) | |
|
286 | if not user: | |
|
287 | return False | |
|
286 | 288 | self.user_perms = user.permissions |
|
287 | 289 | self.granted_for = user.username |
|
288 | 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