This commit is contained in:
yubaolee
2017-12-12 17:19:46 +08:00
parent 8dcbae1517
commit 4aaeb28912
7 changed files with 56 additions and 65 deletions

View File

@@ -30,7 +30,7 @@ namespace OpenAuth.Mvc.Controllers
var moduleWithChildren = AuthUtil.GetCurrentUser().Modules
.GenerateTree(u =>u.Id, u =>u.ParentId);
var modules = key == "UserModule" ? App.LoadForUser(firstId) : App.LoadForRole(firstId);
var modules = key == Define.USERMODULE ? App.LoadForUser(firstId) : App.LoadForRole(firstId);
CheckModule(moduleWithChildren, modules);