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:
Chris Hill-Scott
2019-06-20 10:35:55 +01:00
parent 3968d5b766
commit afedf431e0
4 changed files with 8 additions and 17 deletions

View File

@@ -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
)