Surplus_Up (2DU) преди 6 години
родител
ревизия
6461bf7f95
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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()