We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e30f4f commit 6e20732Copy full SHA for 6e20732
src/forum.nim
@@ -679,7 +679,7 @@ proc executeDeletePost(c: TForumData, postId: int) =
679
select p.id from post p
680
where p.author = ? and p.id = ?
681
"""
682
- let id = getValue(db, postQuery, postId, c.username)
+ let id = getValue(db, postQuery, c.username, postId)
683
684
if id.len == 0 and c.rank < Admin:
685
raise newForumError("You cannot delete this post")
0 commit comments