Ver Fonte

!= 대신 == 사용

Surplus_Up (2DU) há 6 anos atrás
pai
commit
6461bf7f95
1 ficheiros alterados com 1 adições e 1 exclusões
  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()