Skip to content

Commit 547816e

Browse files
committed
Allow editors to see papers too
1 parent 285fc8f commit 547816e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/papers_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def paper_params
335335
def can_see_hidden_paper?(paper)
336336
return false unless current_user
337337

338-
if current_user.aeic? || current_user.is_owner_of?(paper) || current_user.admin?
338+
if current_user.aeic? || current_user.is_owner_of?(paper) || current_user.admin? || current_user.editor?
339339
return true
340340
else
341341
return false

0 commit comments

Comments
 (0)