From 38360eef6052bd76eded02fdaa29fe39eebede96 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 5 Jul 2019 16:12:28 +0200 Subject: [PATCH] syntax fix. #303 --- app/models/ability.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index 2e55aa4c7..c77272a53 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -12,7 +12,7 @@ def initialize(user) if user.role_id == "staff_admin" can :manage, :all cannot [:new, :create], Doi do |doi| - doi.client.blank? || !(doi.client.prefixes.where(prefix: doi.prefix).first || doi.client.symbol.downcase.start_with?("crossref.") || doi.client.symbol.downcase.start_with?("medra.") + doi.client.blank? || !(doi.client.prefixes.where(prefix: doi.prefix).first || doi.client.symbol.downcase.start_with?("crossref.") || doi.client.symbol.downcase.start_with?("medra.")) end elsif user.role_id == "staff_user" can :read, :all