Commits

Marcin Kuzminski committed f5f290d

fixed auth bug

Comments (0)

Files changed (1)

pylons_app/lib/auth.py

         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)