|
|
@@ -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<List<ModuleEntity>>(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) |
|
|
|