Skip to content

Commit

Permalink
Fix line length
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Giarrocco committed May 9, 2019
1 parent fe1b3f7 commit 6edfb7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckan/views/user.py
Expand Up @@ -123,7 +123,10 @@ def index():


def me():
route = config.get(u'ckan.route_after_login', u'dashboard.index') if g.user else u'user.login'
if g.user:
route = config.get(u'ckan.route_after_login', u'dashboard.index')
else:
route = u'user.login'
return h.redirect_to(route)


Expand Down

0 comments on commit 6edfb7b

Please sign in to comment.