# HG changeset patch # User Marcin Kuzminski # Date 2011-05-15 11:20:07 # Node ID 40c8d18102a99daa542884103fb4e00bcf467144 # Parent 08cd023748838ddf46d085c58e37785852284c2c fixed redirection link in notAnonymous decorator diff --git a/rhodecode/lib/auth.py b/rhodecode/lib/auth.py --- a/rhodecode/lib/auth.py +++ b/rhodecode/lib/auth.py @@ -371,13 +371,7 @@ class NotAnonymous(object): 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 '