hide tags-admin-dropdown unless you are staff

This commit is contained in:
Neil Lalonde 2016-06-06 16:04:24 -04:00
parent f3f6c2f98f
commit 0181f22c70
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,8 @@
export default Ember.Controller.extend({
sortProperties: ['count:desc', 'id'],
canAdminTags: Ember.computed.alias("currentUser.staff"),
actions: {
sortByCount() {
this.set('sortProperties', ['count:desc', 'id']);

View file

@ -4,7 +4,9 @@
<div class="list-controls">
<div class="container">
{{tags-admin-dropdown}}
{{#if canAdminTags}}
{{tags-admin-dropdown}}
{{/if}}
<h2>{{i18n "tagging.tags"}}</h2>
</div>
</div>