mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
Disable edit action for label template viewer [SCI-8619]
This commit is contained in:
parent
5afe02552f
commit
ac661851e5
|
@ -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'),
|
||||||
|
|
Loading…
Reference in a new issue