From b8e9d255d30a6b3429d94655608cbe02b634c9f1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 5 Dec 2016 16:51:16 +0100 Subject: Only allow admins to delete tags Signed-off-by: Joas Schilling --- core/js/systemtags/systemtagsinputfield.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'core/js') diff --git a/core/js/systemtags/systemtagsinputfield.js b/core/js/systemtags/systemtagsinputfield.js index 690525c0ebb..d5f6bd5f97e 100644 --- a/core/js/systemtags/systemtagsinputfield.js +++ b/core/js/systemtags/systemtagsinputfield.js @@ -40,7 +40,9 @@ '
' + ' ' + ' ' + - ' ' + + ' {{#if isAdmin}}' + + ' ' + + ' {{/if}}' + '
'; /** @@ -148,7 +150,8 @@ cid: this.cid, name: oldName, deleteTooltip: t('core', 'Delete'), - renameLabel: t('core', 'Rename') + renameLabel: t('core', 'Rename'), + isAdmin: this._isAdmin })); $item.find('.label').after($renameForm); $item.find('.label, .systemtags-actions').addClass('hidden'); -- cgit v1.2.3