Add load org before request to allow current_org to be accessible from request context

This commit is contained in:
Ken Tsang
2018-02-13 16:40:04 +00:00
committed by chrisw
parent 96b66829a1
commit c1e3658a8f
5 changed files with 28 additions and 8 deletions

View File

@@ -23,12 +23,10 @@ def organisations():
@login_required
@user_has_permissions(admin_override=True)
def organisation_dashboard(org_id):
org = organisations_client.get_organisation(org_id)
organisation_services = organisations_client.get_organisation_services(org_id)
return render_template(
'views/organisations/organisation-dashboard.html',
organisation=org,
organisation_services=organisation_services
)