Przeglądaj źródła

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

zuohuaijun 2 lat temu
rodzic
commit
588c3071b2

+ 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;
             });