Browse Source

allow support user to update org

pull/557/head
Kat 3 years ago
parent
commit
ba4a753c60
  1. 2
      app/controllers/organisations_controller.rb

2
app/controllers/organisations_controller.rb

@ -34,7 +34,7 @@ class OrganisationsController < ApplicationController
end end
def update def update
if current_user.data_coordinator? if current_user.data_coordinator? || current_user.support?
if @organisation.update(org_params) if @organisation.update(org_params)
flash[:notice] = I18n.t("organisation.updated") flash[:notice] = I18n.t("organisation.updated")
redirect_to details_organisation_path(@organisation) redirect_to details_organisation_path(@organisation)

Loading…
Cancel
Save