Browse Source

修改除了管理员外 其他人使用不了导航版的问题

大厂分支
zhichao lei 4 years ago
parent
commit
cb7c612d74
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleBLL.cs

+ 8
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleBLL.cs View File

@@ -4,6 +4,7 @@ using Learun.Cache.Factory;
using Learun.Util; using Learun.Util;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;


namespace Learun.Application.Base.SystemModule namespace Learun.Application.Base.SystemModule
{ {
@@ -47,6 +48,8 @@ namespace Learun.Application.Base.SystemModule
cache.Write<List<ModuleEntity>>(cacheKey, list, CacheId.module); cache.Write<List<ModuleEntity>>(cacheKey, list, CacheId.module);
} }


//导航版
var entity = list.FirstOrDefault(a => a.F_ModuleId == "be81bdde-8bbc-4080-b976-84faefc414d2");
UserInfo userInfo = LoginUserInfo.Get(); UserInfo userInfo = LoginUserInfo.Get();
/*关联权限*/ /*关联权限*/
if (!userInfo.isSystem) if (!userInfo.isSystem)
@@ -56,6 +59,11 @@ namespace Learun.Application.Base.SystemModule
list = list.FindAll(t => itemIdList.IndexOf(t.F_ModuleId) >= 0); list = list.FindAll(t => itemIdList.IndexOf(t.F_ModuleId) >= 0);
} }


if (!list.Any(a => a.F_ModuleId == "be81bdde-8bbc-4080-b976-84faefc414d2") && entity != null)
{
list.Add(entity);
}

return list; return list;
} }
catch (Exception ex) catch (Exception ex)


Loading…
Cancel
Save