diff --git a/app/Models/Study.php b/app/Models/Study.php index f1a3a78..7c41014 100644 --- a/app/Models/Study.php +++ b/app/Models/Study.php @@ -431,7 +431,7 @@ public function setReportStatus(ReportStatus $status, User|int|null $user = null public function canEditReport(): bool { // todo: check if the study disallows reporting - return $this->report_status <= ReportStatus::Finalized; + return $this->report_status->value < ReportStatus::Finalized->value; } public function hasReports(): bool