Skip to content

Commit

Permalink
oterh can read provider as before
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed May 1, 2019
1 parent 52fe53c commit 2517e9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def initialize(user)
can :read, :all
elsif user.role_id == "provider_admin" && user.provider_id.present?
can [:update, :read, :read_billing_information], Provider, :symbol => user.provider_id.upcase
can [:read], Provider
can [:manage], ProviderPrefix, :provider_id => user.provider_id
can [:manage], Client,:provider_id => user.provider_id
can [:manage], ClientPrefix #, :client_id => user.provider_id
Expand All @@ -39,6 +40,7 @@ def initialize(user)
end
elsif user.role_id == "provider_user" && user.provider_id.present?
can [:read, :read_billing_information], Provider, :symbol => user.provider_id.upcase
can [:read], Provider
can [:read], ProviderPrefix, :provider_id => user.provider_id
can [:read], Client, :provider_id => user.provider_id
can [:read], ClientPrefix#, :client_id => user.client_id
Expand Down

0 comments on commit 2517e9c

Please sign in to comment.