yuanrf 2 달 전
부모
커밋
fc95bd0630
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      OASystem/OASystem.Api/Controllers/PersonnelModuleController.cs

+ 2 - 2
OASystem/OASystem.Api/Controllers/PersonnelModuleController.cs

@@ -2492,9 +2492,9 @@ OPTION (MAXRECURSION 0); -- 允许无限递归      ";
                 { 5 , new List<int>{ 258 , 235, 234, 233, 208 } }
             };
 
-            if (keyValues.ContainsKey(userId))
+            if (keyValues.ContainsKey(higherUserId))
             {
-                return keyValues[userId].Contains(higherUserId);
+                return keyValues[higherUserId].Contains(userId);
             }
 
             return false;