Let users with empty permissions see certain pages

We’re going to make it possible for some users to be members of a
service, but not have any permissions (not even `view_activity`).

There are some pages that these users should still be able to see
These are the pages that a user with ‘basic view’ would have been able
to see, excluding those that let them send messages.
This commit is contained in:
Chris Hill-Scott
2018-08-06 11:09:57 +01:00
parent e34ca2a8ee
commit bbdbe61cad
6 changed files with 28 additions and 22 deletions

View File

@@ -59,7 +59,7 @@ def old_service_dashboard(service_id):
@main.route("/services/<service_id>")
@login_required
@user_has_permissions('view_activity', 'send_messages')
@user_has_permissions()
def service_dashboard(service_id):
if session.get('invited_user'):