mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 01:55:41 -04:00
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:
@@ -42,7 +42,7 @@ def two_factor():
|
|||||||
return redirect(next_url)
|
return redirect(next_url)
|
||||||
|
|
||||||
if current_user.platform_admin:
|
if current_user.platform_admin:
|
||||||
return redirect(url_for('main.show_all_services'))
|
return redirect(url_for('main.platform_admin'))
|
||||||
if len(services) == 1:
|
if len(services) == 1:
|
||||||
return redirect(url_for('main.service_dashboard', service_id=services[0]['id']))
|
return redirect(url_for('main.service_dashboard', service_id=services[0]['id']))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user