From e1b75d4be5169d090fdc7239ae6fa00ab5144821 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 27 Feb 2020 12:47:11 +0100 Subject: [PATCH] fix spec. #432 --- app/models/ability.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index f56e6e003..fd9928712 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -20,7 +20,7 @@ def initialize(user) elsif user.role_id == "staff_user" can :read, :all elsif user.role_id == "consortium_admin" && user.provider_id.present? - can [:new, :create, :delete], Provider do |provider| + can [:new, :create, :destroy], Provider do |provider| user.provider_id.casecmp(provider.consortium_id) end can [:update, :read, :read_billing_information], Provider do |provider|