mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Make organisation settings platform admin only
At the moment the only setting that a normal organisation team member can change is the name of the organisation is its name. And we don’t even want them to be able to change this. So this commit hides the settings page entirely for non-platform-admin users.
This commit is contained in:
@@ -180,7 +180,7 @@ def cancel_invited_org_user(org_id, invited_user_id):
|
||||
|
||||
@main.route("/organisations/<org_id>/settings/", methods=['GET'])
|
||||
@login_required
|
||||
@user_has_permissions()
|
||||
@user_is_platform_admin
|
||||
def organisation_settings(org_id):
|
||||
|
||||
email_branding = 'GOV.UK'
|
||||
@@ -206,7 +206,7 @@ def organisation_settings(org_id):
|
||||
|
||||
@main.route("/organisations/<org_id>/settings/edit-name", methods=['GET', 'POST'])
|
||||
@login_required
|
||||
@user_has_permissions()
|
||||
@user_is_platform_admin
|
||||
def edit_organisation_name(org_id):
|
||||
form = RenameOrganisationForm()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user