mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Link to all services from organisation
Because a member of the organisation can now see some pages for any live service they should be able to click into each one.
This commit is contained in:
@@ -70,13 +70,8 @@ def add_organisation():
|
||||
@login_required
|
||||
@user_has_permissions()
|
||||
def organisation_dashboard(org_id):
|
||||
for service in current_organisation.live_services:
|
||||
has_permission = current_user.has_permission_for_service(service['id'], 'view_activity')
|
||||
service.update({'has_permission_to_view': has_permission})
|
||||
|
||||
return render_template(
|
||||
'views/organisations/organisation/index.html',
|
||||
organisation_services=current_organisation.live_services
|
||||
)
|
||||
|
||||
|
||||
@@ -87,7 +82,6 @@ def organisation_trial_mode_services(org_id):
|
||||
return render_template(
|
||||
'views/organisations/organisation/trial-mode-services.html',
|
||||
search_form=SearchByNameForm(),
|
||||
services=current_organisation.trial_services
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user