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}} {{#if length}}
{{d-button label="admin.plugins.change_settings" {{#if currentUser.admin}}
icon="gear" {{d-button label="admin.plugins.change_settings"
class='settings-button pull-right' icon="gear"
action="showSettings"}} class='settings-button pull-right'
action="showSettings"}}
{{/if}}
<h3>{{i18n "admin.plugins.installed"}}</h3> <h3>{{i18n "admin.plugins.installed"}}</h3>
@ -41,11 +43,10 @@
{{/if}} {{/if}}
</td> </td>
<td> <td>
{{#if plugin.enabled_setting}} {{#if currentUser.admin}}
<button {{action "showSettings" plugin}} class="btn"> {{#if plugin.enabled_setting}}
{{fa-icon "gear"}} {{d-button action="showSettings" actionParam=plugin icon="gear" label="admin.plugins.change_settings_short"}}
{{i18n "admin.plugins.change_settings_short"}} {{/if}}
</button>
{{/if}} {{/if}}
</td> </td>
</tr> </tr>