Skip to content

Commit

Permalink
fix member permissions for consortia. datacite/datacite#852
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 4, 2019
1 parent 56c9226 commit c40db2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,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 [:manage], Provider, :consortium_id => user.provider_id
can [:read], Provider
can [:manage], ProviderPrefix, :provider_id => user.provider_id
can [:manage], Client,:provider_id => user.provider_id
Expand Down

0 comments on commit c40db2d

Please sign in to comment.