Go to platform admin page when logging in

If you’re a platform admin, you should go straight to the platform admin
page when you log in.

The all services page is just a crappier version of the same thing,
without all the stats, etc.
This commit is contained in:
Chris Hill-Scott
2016-10-21 09:39:33 +01:00
parent ef00427564
commit 14b99e5a24

View File

@@ -42,7 +42,7 @@ def two_factor():
return redirect(next_url)
if current_user.platform_admin:
return redirect(url_for('main.show_all_services'))
return redirect(url_for('main.platform_admin'))
if len(services) == 1:
return redirect(url_for('main.service_dashboard', service_id=services[0]['id']))
else: