From 6d62874f20bd25d8bc65a5ff3ae6cc1e283a3d54 Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Tue, 30 Oct 2018 12:31:00 +0100 Subject: [PATCH] Update permissions for landing results --- app/models/ability.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index ef0acdd7c..fbbccc6a8 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -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