Skip to content

Commit

Permalink
Update permissions for landing results
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Oct 30, 2018
1 parent 17c891f commit 6d62874
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,10 @@ def initialize(user)
end
can [:read], User, :id => user.id
can [:read], Phrase
can [:read_landing_page_results], Doi, :client_id => user.client_id if user.client_id.present?
elsif user.role_id == "anonymous"
can [:read], Doi do |doi|
doi.findable?
end
cannot [:read_landing_page_results], Doi
end
end
end

0 comments on commit 6d62874

Please sign in to comment.