FIX: only display 'show settings' buttons to admins

This commit is contained in:
Régis Hanol 2015-09-28 16:23:41 +02:00
parent 0f49224a60
commit 2ca8d08acb

View File

@ -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>