dfsfds
This commit is contained in:
parent
7844d3e818
commit
155a3744ac
3 changed files with 3 additions and 8 deletions
|
@ -69,13 +69,10 @@ def api_flag_comment(cid, v):
|
|||
|
||||
@app.post('/del_report/<report_fn>')
|
||||
@limiter.limit("1/second")
|
||||
@auth_required
|
||||
@admin_level_required(2)
|
||||
@validate_formkey
|
||||
def remove_report(report_fn, v):
|
||||
|
||||
if v.admin_level < 6:
|
||||
return {"error": "go outside"}, 403
|
||||
|
||||
if report_fn.startswith('c'):
|
||||
report = g.db.query(CommentFlag).filter_by(id=int(report_fn.lstrip('c'))).first()
|
||||
elif report_fn.startswith('p'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue