Forráskód Böngészése

自定义数据范围的时候 也要更新MaxDataScope

Signed-off-by: Admin <mis@kingcan.net>
Admin 2 éve
szülő
commit
0df8237b80
1 módosított fájl, 1 hozzáadás és 0 törlés
  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)
                     customDataScopeRoleIdList.Add(u.Id);
+                    strongerDataScopeType = (int)u.DataScope;//自定义数据范围的时候 也要更新MaxDataScope
                 else if ((int)u.DataScope <= strongerDataScopeType)
                     strongerDataScopeType = (int)u.DataScope;
             });