mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 15:40:31 +08:00
Fix display of unauthorized error on protocol page [SCI-8059]
This commit is contained in:
parent
9908b31d11
commit
72831cd015
1 changed files with 1 additions and 1 deletions
|
@ -1145,7 +1145,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…
Reference in a new issue