Răsfoiți Sursa

버그 수정

2DU 8 ani în urmă
părinte
comite
2b1365cca2
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      func.py

+ 2 - 2
func.py

@@ -168,7 +168,7 @@ def acl_check(ip, name):
                     return(0)
         else:
             return(1)
-    elif(n and admin_check(5) != 1):
+    elif(n and admin_check(5, 'edit (' + name + ')') != 1):
         return(1)
     else:
         b = re.search("^([0-9](?:[0-9]?[0-9]?)\.[0-9](?:[0-9]?[0-9]?))", ip)
@@ -195,7 +195,7 @@ def acl_check(ip, name):
                     else:
                         return(1)
                 elif(row[0][0] == 'admin'):
-                    if(rows and admin_check(5) == 1):
+                    if(rows and admin_check(5, 'edit (' + name + ')') == 1):
                         return(0)
                     else:
                         return(1)