bugfix: linq查询报错&&用户筛选权限后的目录树
This commit is contained in:
@@ -85,12 +85,7 @@ namespace Ewide.Core.Controller
|
||||
[HttpGet("/sysArea/tree")]
|
||||
public async Task<List<AreaTreeNode>> GetAreaCodeTree([FromQuery]int? level)
|
||||
{
|
||||
List<string> areaCodeList = null;
|
||||
if (!_userManager.SuperAdmin)
|
||||
{
|
||||
areaCodeList = await _userManager.GetUserAllAreaList();
|
||||
}
|
||||
return await _areaCodeService.GetAreaCodeTree(level, areaCodeList);
|
||||
return await _areaCodeService.GetAreaCodeTree(level);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user