From fbda7a47670036c3a225805be85ab97d61bb9e1e Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 23 May 2022 10:14:24 +0100 Subject: [PATCH] allow support users to access the edit org page --- 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 3730ef92c..8b4bba7df 100644 --- a/app/controllers/organisations_controller.rb +++ b/app/controllers/organisations_controller.rb @@ -26,7 +26,7 @@ class OrganisationsController < ApplicationController end def edit - if current_user.data_coordinator? + if current_user.data_coordinator? || current_user.support? render "edit", layout: "application" else head :unauthorized