Skip to content

Commit

Permalink
fix spec. #432
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Feb 27, 2020
1 parent 6aa13d7 commit e1b75d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit e1b75d4

Please sign in to comment.