Make the Reset Plugin Data action available to only SuperUsers only when the site is in debug mode
This commit is contained in:
parent
fd47e455c0
commit
89f9c51f55
|
|
@ -59,17 +59,19 @@
|
|||
<?= e(trans('system::lang.plugins.enable_label')) ?>
|
||||
</a>
|
||||
</li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li>
|
||||
<a href="javascript:;" class="oc-icon-bomb"
|
||||
data-request="onBulkAction"
|
||||
data-request-data="action: 'refresh', checked: $('.control-list').listWidget('getChecked')"
|
||||
data-request-update="list_manage_toolbar: '#plugin-toolbar'"
|
||||
data-request-confirm="<?= e(trans('system::lang.plugins.refresh_confirm')) ?>"
|
||||
data-stripe-load-indicator>
|
||||
<?= e(trans('system::lang.plugins.refresh_label')) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php if (\Config::get('app.debug', false) && \BackendAuth::getUser()->is_superuser) : ?>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li>
|
||||
<a href="javascript:;" class="oc-icon-bomb"
|
||||
data-request="onBulkAction"
|
||||
data-request-data="action: 'refresh', checked: $('.control-list').listWidget('getChecked')"
|
||||
data-request-update="list_manage_toolbar: '#plugin-toolbar'"
|
||||
data-request-confirm="<?= e(trans('system::lang.plugins.refresh_confirm')) ?>"
|
||||
data-stripe-load-indicator>
|
||||
<?= e(trans('system::lang.plugins.refresh_label')) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
|
|
|
|||
Loading…
Reference in New Issue