diff options
author | Joas Schilling <coding@schilljs.com> | 2016-12-05 16:51:16 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-12-06 16:30:21 +0100 |
commit | b8e9d255d30a6b3429d94655608cbe02b634c9f1 (patch) | |
tree | 53d23c246891599b07dc69f90724e6b394c74301 /core/js | |
parent | b1901534be20ab768c4f5dccaa5c7c81fb472aa8 (diff) | |
download | nextcloud-server-b8e9d255d30a6b3429d94655608cbe02b634c9f1.tar.gz nextcloud-server-b8e9d255d30a6b3429d94655608cbe02b634c9f1.zip |
Only allow admins to delete tags
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/systemtags/systemtagsinputfield.js | 7 |
1 files changed, 5 insertions, 2 deletions
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 @@ '<form class="systemtags-rename-form">' + ' <label class="hidden-visually" for="{{cid}}-rename-input">{{renameLabel}}</label>' + ' <input id="{{cid}}-rename-input" type="text" value="{{name}}">' + - ' <a href="#" class="delete icon icon-delete" title="{{deleteTooltip}}"></a>' + + ' {{#if isAdmin}}' + + ' <a href="#" class="delete icon icon-delete" title="{{deleteTooltip}}"></a>' + + ' {{/if}}' + '</form>'; /** @@ -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'); |