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|