yuanrf 2 mesi fa
parent
commit
fc95bd0630

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