Kaynağa Gözat

!= 대신 == 사용

Surplus_Up (2DU) 6 yıl önce
ebeveyn
işleme
f247739f30
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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:
     if ban_check() == 1:
         return 1
         return 1
 
 
-    if tool != 'topic' and tool != 'render' and name:
+    if tool == '' and tool != 'render' and name:
         acl_c = re.search("^user:((?:(?!\/).)*)", name)
         acl_c = re.search("^user:((?:(?!\/).)*)", name)
         if acl_c:
         if acl_c:
             acl_n = acl_c.groups()
             acl_n = acl_c.groups()