File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public function activateAccountAction($token)
133
133
134
134
$ user = $ this ->userCreationService ->createUserAndAccount ($ registrationFlow );
135
135
$ this ->registrationFlowRepository ->remove ($ registrationFlow );
136
- $ this ->persistenceManager ->whitelistObject ($ registrationFlow );
136
+ $ this ->persistenceManager ->allowObject ($ registrationFlow );
137
137
138
138
$ this ->view ->assign ('success ' , true );
139
139
$ this ->view ->assign ('user ' , $ user );
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ public function createUserAndAccount(RegistrationFlow $registrationFlow)
71
71
72
72
// Persist user
73
73
$ this ->userRepository ->add ($ user );
74
- $ this ->persistenceManager ->whitelistObject ($ user );
75
- $ this ->persistenceManager ->whitelistObject ($ account );
74
+ $ this ->persistenceManager ->allowObject ($ user );
75
+ $ this ->persistenceManager ->allowObject ($ account );
76
76
77
77
// Return the user so the controller can directly use it
78
78
return $ user ;
Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ public function createUserAndAccount(RegistrationFlow $registrationFlow)
75
75
$ this ->getPartyService ()->assignAccountToParty ($ account , $ user );
76
76
$ this ->getPartyRepository ()->add ($ user );
77
77
$ this ->accountRepository ->add ($ account );
78
- $ this ->persistenceManager ->whitelistObject ($ user );
79
- $ this ->persistenceManager ->whitelistObject ($ user ->getPreferences ());
80
- $ this ->persistenceManager ->whitelistObject ($ name );
81
- $ this ->persistenceManager ->whitelistObject ($ account );
78
+ $ this ->persistenceManager ->allowObject ($ user );
79
+ $ this ->persistenceManager ->allowObject ($ user ->getPreferences ());
80
+ $ this ->persistenceManager ->allowObject ($ name );
81
+ $ this ->persistenceManager ->allowObject ($ account );
82
82
83
83
// Return the user so the controller can directly use it
84
84
return $ user ;
You can’t perform that action at this time.
0 commit comments