mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Merge pull request #494 from alphagov/click-govuk-not-logged-in
If not logged in, go to homepage when clicking GOV.UK
This commit is contained in:
@@ -16,8 +16,11 @@ def choose_service():
|
||||
|
||||
|
||||
@main.route("/services-or-dashboard")
|
||||
@login_required
|
||||
def show_all_services_or_dashboard():
|
||||
|
||||
if not current_user.is_authenticated():
|
||||
return redirect(url_for('.index'))
|
||||
|
||||
services = service_api_client.get_services({'user_id': current_user.id})['data']
|
||||
|
||||
if 1 == len(services):
|
||||
|
||||
Reference in New Issue
Block a user