Skip to content

Commit 49ed392

Browse files
Add updated file.
1 parent 640e532 commit 49ed392

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/Entity/Member.php

+21-1
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,11 @@ public function getFields(): Collection
11271127
return $this->fields;
11281128
}
11291129

1130+
public function getMemberFields(): array
1131+
{
1132+
return $this->memberFields;
1133+
}
1134+
11301135
public function addVolunteerRight(RightVolunteer $volunteerRight): self
11311136
{
11321137
if (!$this->volunteerRights->contains($volunteerRight)) {
@@ -1332,14 +1337,29 @@ public function isBanned(): bool
13321337

13331338
public function isDeniedAccess(): bool
13341339
{
1335-
return !$this->isBrowsable();
1340+
return !in_array(
1341+
$this->status,
1342+
[
1343+
MemberStatusType::ACTIVE,
1344+
MemberStatusType::OUT_OF_REMIND,
1345+
MemberStatusType::ACCOUNT_ACTIVATED,
1346+
MemberStatusType::MAIL_CONFIRMED,
1347+
MemberStatusType::AWAITING_MAIL_CONFIRMATION,
1348+
],
1349+
true
1350+
);
13361351
}
13371352

13381353
public function isNotConfirmedYet(): bool
13391354
{
13401355
return MemberStatusType::AWAITING_MAIL_CONFIRMATION === $this->status;
13411356
}
13421357

1358+
public function didConfirmMailAddress(): bool
1359+
{
1360+
return MemberStatusType::MAIL_CONFIRMED === $this->status;
1361+
}
1362+
13431363
public function isFirstnameShown(): bool
13441364
{
13451365
return ($this->hideAttribute & self::MEMBER_FIRSTNAME_HIDDEN) !== self::MEMBER_FIRSTNAME_HIDDEN;

0 commit comments

Comments
 (0)