Mercurial > kallithea
diff rhodecode/lib/auth.py @ 686:ff6a8196ebfe beta
fixed anonymous access bug.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 13 Nov 2010 02:50:32 +0100 |
parents | 99875a8f2ad1 |
children | cb0d9ce6ac5c |
line wrap: on
line diff
--- a/rhodecode/lib/auth.py Sat Nov 13 02:39:03 2010 +0100 +++ b/rhodecode/lib/auth.py Sat Nov 13 02:50:32 2010 +0100 @@ -209,8 +209,6 @@ :param session: """ user = session.get('rhodecode_user', AuthUser()) - - #if the user is not logged in we check for anonymous access #if user is logged and it's a default user check if we still have anonymous #access enabled @@ -219,6 +217,7 @@ if anonymous_user.active is True: #then we set this user is logged in user.is_authenticated = True + user.user_id = anonymous_user.user_id else: user.is_authenticated = False