diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleBLL.cs index 7992acd5a..2c3889e69 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleBLL.cs @@ -4,6 +4,7 @@ using Learun.Cache.Factory; using Learun.Util; using System; using System.Collections.Generic; +using System.Linq; namespace Learun.Application.Base.SystemModule { @@ -47,6 +48,8 @@ namespace Learun.Application.Base.SystemModule cache.Write>(cacheKey, list, CacheId.module); } + //导航版 + var entity = list.FirstOrDefault(a => a.F_ModuleId == "be81bdde-8bbc-4080-b976-84faefc414d2"); UserInfo userInfo = LoginUserInfo.Get(); /*关联权限*/ if (!userInfo.isSystem) @@ -56,6 +59,11 @@ namespace Learun.Application.Base.SystemModule 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; } catch (Exception ex)