fds
This commit is contained in:
parent
97aba453c2
commit
c2fee842f2
2 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ def toggle_club(pid, v):
|
|||
|
||||
if v.club_allowed == False: abort(403)
|
||||
post = get_post(pid)
|
||||
if post.author_id != v.id and v.admin_level < 2: abort(403)
|
||||
if v.admin_level < 2: abort(403)
|
||||
|
||||
post.club = not post.club
|
||||
g.db.add(post)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue