|
@@ -4,7 +4,7 @@ def filter_document_del(name = ''):
|
|
|
with get_db_connect() as conn:
|
|
with get_db_connect() as conn:
|
|
|
curs = conn.cursor()
|
|
curs = conn.cursor()
|
|
|
|
|
|
|
|
- if admin_check() != 1:
|
|
|
|
|
|
|
+ if admin_check(None, 'del_document_filter') != 1:
|
|
|
return re_error('/error/3')
|
|
return re_error('/error/3')
|
|
|
|
|
|
|
|
curs.execute(db_change("delete from html_filter where html = ? and kind = 'document'"), [name])
|
|
curs.execute(db_change("delete from html_filter where html = ? and kind = 'document'"), [name])
|