Skip to content

Commit e6209d9

Browse files
Merge pull request #53457 from mickenordin/master
fix(OCM-invites): Use the correct way of getting the email
2 parents 763873e + 4d4b886 commit e6209d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/cloud_federation_api/lib/Controller/RequestHandlerController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function inviteAccepted(string $recipientProvider, string $token, string
271271
$response->throttle();
272272
return $response;
273273
}
274-
274+
275275
if ($invitation->isAccepted() === true) {
276276
$response = ['message' => 'Invite already accepted', 'error' => true];
277277
$status = Http::STATUS_CONFLICT;
@@ -291,8 +291,8 @@ public function inviteAccepted(string $recipientProvider, string $token, string
291291
$response->throttle();
292292
return $response;
293293
}
294-
295-
$sharedFromEmail = $localUser->getPrimaryEMailAddress();
294+
295+
$sharedFromEmail = $localUser->getEMailAddress();
296296
if ($sharedFromEmail === null) {
297297
$response = ['message' => 'Invalid or non existing token', 'error' => true];
298298
$status = Http::STATUS_BAD_REQUEST;

0 commit comments

Comments
 (0)