Skip to content

Commit 676dbff

Browse files
committed
feat: Only allow the author or staff for solution acceptance and fix mark as solved mentions
1 parent be54ea5 commit 676dbff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/cogs/forum/auto_tagging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ async def _get_current_solution_from_pins(self, thread: Thread) -> Message | Non
473473

474474
return None
475475

476+
# Only allow the author or staff
476477
def _can_accept_solution(
477478
self, interaction: Interaction, thread_author_id: int, staff_roles: list[int]
478479
) -> bool:

0 commit comments

Comments
 (0)