Skip to content

Commit 6f36660

Browse files
ringaboutdom96
authored andcommitted
allow Moderators to edit posts
1 parent 6386fab commit 6f36660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forum.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ proc updatePost(c: TForumData, postId: int, content: string,
515515
let creation = fromUnix(postRow[1].parseInt)
516516
let isArchived = (getTime() - creation).inHours >= 2
517517
let canEdit = c.rank == Admin or c.userid == postRow[0]
518-
if isArchived and c.rank < Admin:
518+
if isArchived and c.rank < Moderator:
519519
raise newForumError("This post is too old and can no longer be edited")
520520
if not canEdit:
521521
raise newForumError("You cannot edit this post")

0 commit comments

Comments
 (0)