Explorar o código

!= 대신 == 사용

Surplus_Up (2DU) %!s(int64=6) %!d(string=hai) anos
pai
achega
6461bf7f95
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      route/tool/func.py

+ 1 - 1
route/tool/func.py

@@ -813,7 +813,7 @@ def acl_check(name = 'test', tool = '', sub = 'test'):
     if ban_check() == 1:
         return 1
 
-    if tool != 'topic' and tool != 'render' and name:
+    if tool == '' and tool != 'render' and name:
         acl_c = re.search("^user:((?:(?!\/).)*)", name)
         if acl_c:
             acl_n = acl_c.groups()