Change to row
This commit is contained in:
parent
f0d9a89167
commit
cd565eabe0
1 changed files with 1 additions and 1 deletions
|
|
@ -714,7 +714,7 @@ proc executeDeletePost(c: TForumData, postId: int) =
|
|||
select p.author, p.id from post p
|
||||
where p.author = ? and p.id = ?
|
||||
"""
|
||||
let postRow = getValue(db, postQuery, c.username, postId)
|
||||
let postRow = getRow(db, postQuery, c.username, postId)
|
||||
|
||||
if postRow[1].len == 0 and not (c.rank == Admin or c.userid == postRow[0]):
|
||||
raise newForumError("You cannot delete this post")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue