mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 10:03:21 -04:00
organisation-dashboard
This commit is contained in:
@@ -84,6 +84,8 @@ billing_api_client = BillingAPIClient()
|
||||
# The current service attached to the request stack.
|
||||
current_service = LocalProxy(partial(_lookup_req_object, 'service'))
|
||||
|
||||
# The current organisation attached to the request stack.
|
||||
current_organisation = LocalProxy(partial(_lookup_req_object, 'organisation'))
|
||||
|
||||
def create_app(application):
|
||||
setup_commands(application)
|
||||
@@ -156,6 +158,10 @@ def init_app(application):
|
||||
def _attach_current_service():
|
||||
return {'current_service': current_service}
|
||||
|
||||
@application.context_processor
|
||||
def _attach_current_organisation():
|
||||
return {'current_org': current_organisation}
|
||||
|
||||
@application.context_processor
|
||||
def _attach_current_user():
|
||||
return{'current_user': current_user}
|
||||
|
||||
Reference in New Issue
Block a user