Skip to content

Commit

Permalink
[#2578] Fix for user dashboard test
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 31, 2012
1 parent 4026632 commit 208e979
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/controllers/user.py
Expand Up @@ -120,10 +120,10 @@ def me(self, locale=None):
h.redirect_to(locale=locale, controller='user',
action='login', id=None)
user_ref = c.userobj.get_reference_preferred_for_uri()
if asbool(config.get('ckan.legacy_templates', 'false')):
h.redirect_to(locale=locale, controller='user',
action='dashboard', id=user_ref)
return self.read(id=c.username)
# FIXME what is dashboard
h.redirect_to(locale=locale, controller='user', action='dashboard',
id=user_ref)

def register(self, data=None, errors=None, error_summary=None):
return self.new(data, errors, error_summary)
Expand Down

0 comments on commit 208e979

Please sign in to comment.