From ba4a753c60f68bff335caa46f0f991757a3e580a Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 23 May 2022 10:25:51 +0100 Subject: [PATCH] allow support user to update org --- app/controllers/organisations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/organisations_controller.rb b/app/controllers/organisations_controller.rb index 8b4bba7df..4e3a0566d 100644 --- a/app/controllers/organisations_controller.rb +++ b/app/controllers/organisations_controller.rb @@ -34,7 +34,7 @@ class OrganisationsController < ApplicationController end def update - if current_user.data_coordinator? + if current_user.data_coordinator? || current_user.support? if @organisation.update(org_params) flash[:notice] = I18n.t("organisation.updated") redirect_to details_organisation_path(@organisation)