FIX - enum compare

This commit is contained in:
Dr Masroor Ehsan 2025-01-11 13:39:17 +06:00
parent 727d706a97
commit bcd68f0ffe

View File

@ -431,7 +431,7 @@ public function setReportStatus(ReportStatus $status, User|int|null $user = null
public function canEditReport(): bool public function canEditReport(): bool
{ {
// todo: check if the study disallows reporting // 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 public function hasReports(): bool