Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions webapp/src/Controller/Team/ClarificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,12 @@ public function viewAction(Request $request, int $clarId): Response
throw new HttpException(401, 'Permission denied');
}

// Get the "parent" message if we have one.
// Get the "parent" message if we have one - if we have access to it
if ($clarification->getInReplyTo()) {
$clarification = $clarification->getInReplyTo();
$parent = $clarification->getInReplyTo();
if ($team->canViewClarification($parent)) {
$clarification = $parent;
}
}

// Mark clarification as read.
Expand Down
Loading