From 0b4afdd9ad3b65a57f50560461f40c99d243d6e8 Mon Sep 17 00:00:00 2001 From: Ivan Kljun Date: Wed, 9 Aug 2023 17:01:30 +0200 Subject: [PATCH] Enable showing Label preview even if Label template is disabled [SCI-9025] --- app/controllers/label_templates_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/label_templates_controller.rb b/app/controllers/label_templates_controller.rb index bc5183b43..d31cb404f 100644 --- a/app/controllers/label_templates_controller.rb +++ b/app/controllers/label_templates_controller.rb @@ -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)