调整角色如果不选栏目,默认拥有全部栏目权限

This commit is contained in:
2020-11-12 18:41:55 +08:00
parent 7f796a5b18
commit cfd8f02ef4
10 changed files with 94 additions and 45 deletions
@@ -24,7 +24,7 @@
<select class="form-control m-b" asp-for="KId">
@foreach (var m in ViewBag.ListKinds)
{
if (my.Roles.IsSuperAdmin != 1)
if (my.Roles.IsSuperAdmin != 1 && aclist.Count > 0)
{
if (aclist.FindIndex(x => x == m.Id) > -1)
{