File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -1127,6 +1127,11 @@ public function getFields(): Collection
1127
1127
return $ this ->fields ;
1128
1128
}
1129
1129
1130
+ public function getMemberFields (): array
1131
+ {
1132
+ return $ this ->memberFields ;
1133
+ }
1134
+
1130
1135
public function addVolunteerRight (RightVolunteer $ volunteerRight ): self
1131
1136
{
1132
1137
if (!$ this ->volunteerRights ->contains ($ volunteerRight )) {
@@ -1332,14 +1337,29 @@ public function isBanned(): bool
1332
1337
1333
1338
public function isDeniedAccess (): bool
1334
1339
{
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
+ );
1336
1351
}
1337
1352
1338
1353
public function isNotConfirmedYet (): bool
1339
1354
{
1340
1355
return MemberStatusType::AWAITING_MAIL_CONFIRMATION === $ this ->status ;
1341
1356
}
1342
1357
1358
+ public function didConfirmMailAddress (): bool
1359
+ {
1360
+ return MemberStatusType::MAIL_CONFIRMED === $ this ->status ;
1361
+ }
1362
+
1343
1363
public function isFirstnameShown (): bool
1344
1364
{
1345
1365
return ($ this ->hideAttribute & self ::MEMBER_FIRSTNAME_HIDDEN ) !== self ::MEMBER_FIRSTNAME_HIDDEN ;
You can’t perform that action at this time.
0 commit comments