From c40db2df7f6044f5b1070736755d70cb5ce0cce9 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 4 Oct 2019 09:04:01 +0200 Subject: [PATCH] fix member permissions for consortia. datacite/datacite#852 --- app/models/ability.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/ability.rb b/app/models/ability.rb index 542a55aa8..954876d68 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -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