Mercurial > kallithea
changeset 1335:40c8d18102a9 beta
fixed redirection link in notAnonymous decorator
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 15 May 2011 13:20:07 +0200 |
parents | 08cd02374883 |
children | e9fe4ff57cbb |
files | rhodecode/lib/auth.py |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/auth.py Fri May 13 19:08:37 2011 +0200 +++ b/rhodecode/lib/auth.py Sun May 15 13:20:07 2011 +0200 @@ -371,13 +371,7 @@ anonymous = self.user.username == 'default' if anonymous: - p = '' - if request.environ.get('SCRIPT_NAME') != '/': - p += request.environ.get('SCRIPT_NAME') - - p += request.environ.get('PATH_INFO') - if request.environ.get('QUERY_STRING'): - p += '?' + request.environ.get('QUERY_STRING') + p = url.current() import rhodecode.lib.helpers as h h.flash(_('You need to be a registered user to '