mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 10:24:44 +08:00
1 完成用户部门权限分配处理,可以为用户分配可见部门,如果没有任何可见部门,则只能查看自己有关的数据;
2 完善进出库实例; 3 添加CodeSmith生成EF DbContext Entity Mapping;
This commit is contained in:
@@ -23,7 +23,8 @@ namespace OpenAuth.UnitTest
|
||||
new ModuleRepository(),
|
||||
new RelevanceRepository(),
|
||||
new BaseRepository<ModuleElement>(),
|
||||
new ResourceRepository()
|
||||
new ResourceRepository(),
|
||||
new OrgRepository()
|
||||
);
|
||||
var user = login.Login("admin", "admin");
|
||||
foreach (var module in user.Modules)
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace OpenAuth.UnitTest
|
||||
{
|
||||
|
||||
private TestContext testContextInstance;
|
||||
private OrgManagerApp _app = new OrgManagerApp(new OrgRepository());
|
||||
private OrgManagerApp _app = new OrgManagerApp(new OrgRepository(), new RelevanceRepository());
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user