Fix protocol layout issue [SCI-6312] (#3712)

This commit is contained in:
artoscinote 2021-12-01 16:23:46 +01:00 committed by GitHub
parent 78ab094bf2
commit 19a91fce66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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