FIX - enum compare
This commit is contained in:
parent
727d706a97
commit
bcd68f0ffe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user