This commit is contained in:
Aevann1 2022-04-29 21:19:54 +02:00
parent 7cda1f203b
commit 2ca3c4c71c
2 changed files with 5 additions and 2 deletions

View file

@ -43,6 +43,7 @@ titleheaders = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWe
def toggle_club(pid, v):
post = get_post(pid)
if post.author_id != v.id and v.admin_level < 2: abort(403)
post.club = not post.club
g.db.add(post)