Skip to content

Commit 6fc66f5

Browse files
committed
chore: update nomination logic
1 parent 586d108 commit 6fc66f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Models/Foundation/Main/Member.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,11 +2401,11 @@ public function getLatestElectionNominations()
24012401
public function nominateCandidate(Member $candidate, Election $election): Nomination
24022402
{
24032403

2404-
if (!$this->isFoundationMember())
2405-
throw new ValidationException("You are not a valid Voter.");
2404+
if (!$this->isIndividualMember())
2405+
throw new ValidationException("You need to be an Individual Member.");
24062406

24072407
if (!$election->isNominationsOpen())
2408-
throw new ValidationException("Nomination Period is closed for election.");
2408+
throw new ValidationException("Nomination Period is closed for current election.");
24092409

24102410
if (!$candidate->isFoundationMember())
24112411
throw new ValidationException("Candidate is not valid.");

0 commit comments

Comments
 (0)