修改BUG:网站设置页面清除所有缓存功能只给网站管理员开放
This commit is contained in:
parent
9f1d4650f6
commit
77b1d48162
|
@ -1,4 +1,6 @@
|
|||
$(function () {
|
||||
$('a[data-admin="False"]').hide();
|
||||
|
||||
var bsa = new BootstrapAdmin({
|
||||
url: '../api/Profiles',
|
||||
bootstrapTable: null,
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">网站缓存<a id="clearCache" href="#" class="clearcache fa fa-times-circle-o" title="全部清除(WebAdmin可用)"></a><a id="refreshCache" href="#" class="pull-right fa fa-refresh" title="点击刷新"></a></div>
|
||||
<div class="panel-heading">网站缓存<a id="clearCache" href="#" class="clearcache fa fa-times-circle-o" data-admin="@LgbPrincipal.IsAdmin(Model.UserName)" title="全部清除(WebAdmin可用)"></a><a id="refreshCache" href="#" class="pull-right fa fa-refresh" title="点击刷新"></a></div>
|
||||
<div class="panel-body">
|
||||
<div class="tasks-widget">
|
||||
<ul id="sortable" class="task-list ui-sortable"></ul>
|
||||
|
|
Loading…
Reference in New Issue