mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-05 19:34:34 +08:00
Merge pull request #5065 from artoscinote/ma_SCI_8059
Fix display of unauthorized error on protocol page [SCI-8059]
This commit is contained in:
commit
a43bd9d7f9
1 changed files with 1 additions and 1 deletions
|
@ -1146,7 +1146,7 @@ class ProtocolsController < ApplicationController
|
|||
unless @protocol.present? &&
|
||||
(can_read_protocol_in_module?(@protocol) ||
|
||||
can_read_protocol_in_repository?(@protocol))
|
||||
respond_to { |f| f.json { render json: {}, status: :unauthorized } }
|
||||
render_403
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue