Fix regression when identity panel is not registered.
When the admin user logs in and the identity dashboard is not
registered we should simply get the default dashboard instead.
This fixes a regression introduced in
Closes-Bug:
@@ -31,12 +31,14 @@ def get_user_home(user):
except AttributeError:
raise exceptions.NotAuthenticated()
# Domain Admin, Project Admin will default to identity
+ dashboard = None
if token.project.get('id') is None or user.is_superuser:
try:
dashboard = horizon.get_dashboard('identity')
except base.NotRegistered:
pass
- else:
+
+ if dashboard is None:
dashboard = horizon.get_default_dashboard()
return dashboard.get_absolute_url()
