This commit is contained in:
Aevann1 2022-02-04 10:59:12 +02:00
parent f341fc27d7
commit 53b1a2f862
6 changed files with 7 additions and 25 deletions

View file

@ -237,17 +237,11 @@ def log(v):
def log_item(id, v):
try: id = int(id)
except:
try: id = int(id, 36)
except: abort(404)
except: abort(404)
action=g.db.query(ModAction).filter_by(id=id).one_or_none()
if not action:
abort(404)
if request.path != action.permalink:
return redirect(action.permalink)
if not action: abort(404)
admins = [x[0] for x in g.db.query(User.username).filter(User.admin_level > 1).all()]