feat: remove unused assignment status, rename 'open' to 'published'

This commit is contained in:
Björn Fromme
2024-06-23 18:48:42 +02:00
parent 4ac8f36589
commit 40a5fcc1fa
6 changed files with 34 additions and 15 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ class AssignmentVoter extends Voter
return $this->security->isGranted('ROLE_ADMINISTRATIVE');
}
// Only allow applications to open assignments
if (Assignment::STATUS_CLOSED === $assignment->getStatus()) {
// Only allow applications to published assignments
if (Assignment::STATUS_DRAFT === $assignment->getStatus()) {
return false;
}