Changeset - f5f290d68646
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 15 years ago 2010-07-01 23:44:26
marcin@python-works.com
fixed auth bug
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pylons_app/lib/auth.py
Show inline comments
 
@@ -282,7 +282,9 @@ class PermsFunction(object):
 
        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)            
0 comments (0 inline, 0 general)