浏览代码

!727 自定义数据范围的时候 也要更新MaxDataScope
Merge pull request !727 from 罗三疯/N/A

zuohuaijun 3 年之前
父节点
当前提交
588c3071b2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Admin.NET/Admin.NET.Core/Service/Org/SysOrgService.cs

+ 1 - 0
Admin.NET/Admin.NET.Core/Service/Org/SysOrgService.cs

@@ -256,6 +256,7 @@ public class SysOrgService : IDynamicApiController, ITransient
             {
             {
                 if (u.DataScope == DataScopeEnum.Define)
                 if (u.DataScope == DataScopeEnum.Define)
                     customDataScopeRoleIdList.Add(u.Id);
                     customDataScopeRoleIdList.Add(u.Id);
+                    strongerDataScopeType = (int)u.DataScope;//自定义数据范围的时候 也要更新MaxDataScope
                 else if ((int)u.DataScope <= strongerDataScopeType)
                 else if ((int)u.DataScope <= strongerDataScopeType)
                     strongerDataScopeType = (int)u.DataScope;
                     strongerDataScopeType = (int)u.DataScope;
             });
             });