mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
hide tags-admin-dropdown unless you are staff
This commit is contained in:
parent
f3f6c2f98f
commit
0181f22c70
2 changed files with 5 additions and 1 deletions
|
@ -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']);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue