Skip to content

Commit

Permalink
allow password reset for admin account. datacite/datacite#832
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Aug 24, 2019
1 parent fc1ee72 commit 3f0d369
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 @@ -105,6 +105,7 @@ def initialize(user)
activity.doi.findable?
end
elsif user.role_id == "temporary"
can [:read, :update], Provider, :symbol => "ADMIN" if user.uid == "admin"
can [:read, :update], Provider, :symbol => user.provider_id.upcase if user.provider_id.present?
can [:read, :update], Client, :symbol => user.client_id.upcase if user.client_id.present?
can [:read], Doi, :client_id => user.client_id if user.client_id.present?
Expand Down

0 comments on commit 3f0d369

Please sign in to comment.