Merge pull request #5952 from ivanscinote/SCI-9025-show-label-preview

Allow zpl_preview Access Regardless of Label Template ENV Status [SCI-9025]
This commit is contained in:
ajugo 2023-08-10 09:54:08 +02:00 committed by GitHub
commit 5157f86b56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ class LabelTemplatesController < ApplicationController
include InputSanitizeHelper
include TeamsHelper
before_action :check_feature_enabled, except: :index
before_action :check_feature_enabled, except: %i(index zpl_preview)
before_action :load_label_templates, only: %i(index datatable)
before_action :load_label_template, only: %i(show set_default update template_tags)
before_action :check_view_permissions, except: %i(create duplicate set_default delete update)