diff --git a/pages/threads/threads.pixy b/pages/threads/threads.pixy index 09120799..d56b6ef8 100644 --- a/pages/threads/threads.pixy +++ b/pages/threads/threads.pixy @@ -20,4 +20,9 @@ component Thread(thread *arn.Thread, posts []*arn.Post, user *arn.User) .buttons button.action(data-action="forumReply", data-trigger="click") Icon("mail-reply") - span Reply \ No newline at end of file + span Reply + if user.Role == "admin" || user.Role == "editor" + button.action(data-action="deleteObject", data-trigger="click", data-return-path="/forum", data-confirm-type="thread", data-api="/api/thread/" + thread.ID) + Icon("trash") + span Delete + \ No newline at end of file