Sfoglia il codice sorgente

레벨 ACL 버그 수정

https://github.com/openNAMU/openNAMU/issues/2073
잉여개발기 (SPDV) 2 anni fa
parent
commit
e82c51a323
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      route/tool/func.py

+ 2 - 2
route/tool/func.py

@@ -2060,10 +2060,10 @@ def acl_check(name = '', tool = '', topic_num = '1'):
                 elif acl_data[0][0] == 'not_all':
                     return 1
                 elif acl_data[0][0] == 'up_to_level_3':
-                    if level_check(ip)[0] >= 3:
+                    if int(level_check(ip)[0]) >= 3:
                         return 0
                 elif acl_data[0][0] == 'up_to_level_10':
-                    if level_check(ip)[0] >= 10:
+                    if int(level_check(ip)[0]) >= 10:
                         return 0
 
                 return 1