Mercurial > kallithea
changeset 333:f5f290d68646
fixed auth bug
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 01 Jul 2010 23:44:26 +0200 |
parents | 40b409af53a5 |
children | 6c23e72437e3 |
files | pylons_app/lib/auth.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pylons_app/lib/auth.py Thu Jul 01 21:23:32 2010 +0200 +++ b/pylons_app/lib/auth.py Thu Jul 01 23:44:26 2010 +0200 @@ -282,7 +282,9 @@ self.repo_name = None def __call__(self, check_Location=''): - user = session['hg_app_user'] + user = session.get('hg_app_user', False) + if not user: + return False self.user_perms = user.permissions self.granted_for = user.username log.debug('checking %s %s', self.__class__.__name__, self.required_perms)