mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Fix protocol layout issue [SCI-6312] (#3712)
This commit is contained in:
parent
78ab094bf2
commit
19a91fce66
1 changed files with 1 additions and 2 deletions
|
@ -11,8 +11,6 @@ class ProtocolsController < ApplicationController
|
|||
include TeamsHelper
|
||||
include CommentHelper
|
||||
|
||||
layout 'protocols/print', only: :print
|
||||
|
||||
before_action :check_create_permissions, only: %i(
|
||||
create_new_modal
|
||||
create
|
||||
|
@ -113,6 +111,7 @@ class ProtocolsController < ApplicationController
|
|||
def print
|
||||
@protocol = Protocol.find(params[:id])
|
||||
render_403 && return unless @protocol.my_module.blank? || can_read_protocol_in_module?(@protocol)
|
||||
render layout: 'protocols/print'
|
||||
end
|
||||
|
||||
def linked_children
|
||||
|
|
Loading…
Reference in a new issue