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