mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:10:11 +08:00
FIX: only display 'show settings' buttons to admins
This commit is contained in:
parent
0f49224a60
commit
2ca8d08acb
|
@ -1,9 +1,11 @@
|
|||
{{#if length}}
|
||||
|
||||
{{d-button label="admin.plugins.change_settings"
|
||||
icon="gear"
|
||||
class='settings-button pull-right'
|
||||
action="showSettings"}}
|
||||
{{#if currentUser.admin}}
|
||||
{{d-button label="admin.plugins.change_settings"
|
||||
icon="gear"
|
||||
class='settings-button pull-right'
|
||||
action="showSettings"}}
|
||||
{{/if}}
|
||||
|
||||
<h3>{{i18n "admin.plugins.installed"}}</h3>
|
||||
|
||||
|
@ -41,11 +43,10 @@
|
|||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
{{#if plugin.enabled_setting}}
|
||||
<button {{action "showSettings" plugin}} class="btn">
|
||||
{{fa-icon "gear"}}
|
||||
{{i18n "admin.plugins.change_settings_short"}}
|
||||
</button>
|
||||
{{#if currentUser.admin}}
|
||||
{{#if plugin.enabled_setting}}
|
||||
{{d-button action="showSettings" actionParam=plugin icon="gear" label="admin.plugins.change_settings_short"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue
Block a user