Disable edit action for label template viewer [SCI-8619]

This commit is contained in:
Martin Artnik 2023-06-06 11:42:03 +02:00
parent 5afe02552f
commit ac661851e5

View file

@ -34,6 +34,8 @@ module Toolbars
def edit_action def edit_action
return unless @single return unless @single
return unless can_manage_label_templates?(current_user.current_team)
{ {
name: 'edit', name: 'edit',
label: I18n.t('label_templates.index.toolbar.edit'), label: I18n.t('label_templates.index.toolbar.edit'),