mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Merge pull request #5561 from artoscinote/ma_SCI_8619
Disable edit action for label template viewer [SCI-8619]
This commit is contained in:
commit
05282a57d1
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ module Toolbars
|
|||
def edit_action
|
||||
return unless @single
|
||||
|
||||
return unless can_manage_label_templates?(current_user.current_team)
|
||||
|
||||
{
|
||||
name: 'edit',
|
||||
label: I18n.t('label_templates.index.toolbar.edit'),
|
||||
|
|
Loading…
Reference in a new issue