|
@@ -3,7 +3,6 @@ from .tool.func import *
|
|
|
def topic_2(conn, topic_num):
|
|
def topic_2(conn, topic_num):
|
|
|
curs = conn.cursor()
|
|
curs = conn.cursor()
|
|
|
|
|
|
|
|
- ban = acl_check(None, 'topic', topic_num)
|
|
|
|
|
admin = admin_check(3)
|
|
admin = admin_check(3)
|
|
|
topic_num = str(topic_num)
|
|
topic_num = str(topic_num)
|
|
|
|
|
|
|
@@ -19,6 +18,8 @@ def topic_2(conn, topic_num):
|
|
|
else:
|
|
else:
|
|
|
return redirect('/')
|
|
return redirect('/')
|
|
|
|
|
|
|
|
|
|
+ ban = acl_check(name, 'topic', topic_num)
|
|
|
|
|
+
|
|
|
if flask.request.method == 'POST':
|
|
if flask.request.method == 'POST':
|
|
|
if captcha_post(flask.request.form.get('g-recaptcha-response', '')) == 1:
|
|
if captcha_post(flask.request.form.get('g-recaptcha-response', '')) == 1:
|
|
|
return re_error('/error/13')
|
|
return re_error('/error/13')
|