只有管理员才可以看通知栏

This commit is contained in:
Argo-Lenovo 2016-11-26 17:23:34 +08:00
parent d92867df95
commit e1eba5705f
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
</li>
</ul>
}
@if (!Model.ShowMenu)
@if (!Model.ShowMenu && (LgbPrincipal.IsAdmin(User.Identity.Name) || User.IsInRole("Administrators")))
{
<!-- notification start -->
<ul class="notify-row">