This commit is contained in:
@@ -78,7 +78,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && $community && $access) {
|
||||
}
|
||||
$points = $community->computePoints((int)$userId);
|
||||
if (!$access->canHighlightHelpful($points) && !$access->canModerateForum((int)$userId)) {
|
||||
throw new \RuntimeException('Dafür ist mindestens der Rang Mentor-Vater erforderlich.');
|
||||
throw new \RuntimeException('Dein Community-Level darf hilfreiche Antworten aktuell noch nicht hervorheben.');
|
||||
}
|
||||
$postId = (int)($_POST['post_id'] ?? 0);
|
||||
$highlight = ((string)($_POST['highlight'] ?? '1')) === '1';
|
||||
|
||||
Reference in New Issue
Block a user