Эх сурвалжийг харах

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

Signed-off-by: Admin <mis@kingcan.net>
Admin 2 жил өмнө
parent
commit
0df8237b80

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