mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
organisations can be edited by anyone who belongs to that org
This commit is contained in:
@@ -160,7 +160,7 @@ def cancel_invited_org_user(org_id, invited_user_id):
|
|||||||
|
|
||||||
@main.route("/organisations/<org_id>/settings/", methods=['GET'])
|
@main.route("/organisations/<org_id>/settings/", methods=['GET'])
|
||||||
@login_required
|
@login_required
|
||||||
@user_is_platform_admin
|
@user_has_permissions()
|
||||||
def organisation_settings(org_id):
|
def organisation_settings(org_id):
|
||||||
return render_template(
|
return render_template(
|
||||||
'views/organisations/organisation/settings/index.html',
|
'views/organisations/organisation/settings/index.html',
|
||||||
@@ -169,7 +169,7 @@ def organisation_settings(org_id):
|
|||||||
|
|
||||||
@main.route("/organisations/<org_id>/settings/edit-name", methods=['GET', 'POST'])
|
@main.route("/organisations/<org_id>/settings/edit-name", methods=['GET', 'POST'])
|
||||||
@login_required
|
@login_required
|
||||||
@user_is_platform_admin
|
@user_has_permissions()
|
||||||
def edit_organisation_name(org_id):
|
def edit_organisation_name(org_id):
|
||||||
form = RenameOrganisationForm()
|
form = RenameOrganisationForm()
|
||||||
|
|
||||||
@@ -192,7 +192,7 @@ def edit_organisation_name(org_id):
|
|||||||
|
|
||||||
@main.route("/organisations/<org_id>/settings/edit-name/confirm", methods=['GET', 'POST'])
|
@main.route("/organisations/<org_id>/settings/edit-name/confirm", methods=['GET', 'POST'])
|
||||||
@login_required
|
@login_required
|
||||||
@user_is_platform_admin
|
@user_has_permissions()
|
||||||
def confirm_edit_organisation_name(org_id):
|
def confirm_edit_organisation_name(org_id):
|
||||||
# Validate password for form
|
# Validate password for form
|
||||||
def _check_password(pwd):
|
def _check_password(pwd):
|
||||||
|
|||||||
Reference in New Issue
Block a user