mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #53457 from mickenordin/master
fix(OCM-invites): Use the correct way of getting the email
This commit is contained in:
commit
e6209d9135
1 changed files with 3 additions and 3 deletions
|
|
@ -271,7 +271,7 @@ class RequestHandlerController extends Controller {
|
|||
$response->throttle();
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
if ($invitation->isAccepted() === true) {
|
||||
$response = ['message' => 'Invite already accepted', 'error' => true];
|
||||
$status = Http::STATUS_CONFLICT;
|
||||
|
|
@ -291,8 +291,8 @@ class RequestHandlerController extends Controller {
|
|||
$response->throttle();
|
||||
return $response;
|
||||
}
|
||||
|
||||
$sharedFromEmail = $localUser->getPrimaryEMailAddress();
|
||||
|
||||
$sharedFromEmail = $localUser->getEMailAddress();
|
||||
if ($sharedFromEmail === null) {
|
||||
$response = ['message' => 'Invalid or non existing token', 'error' => true];
|
||||
$status = Http::STATUS_BAD_REQUEST;
|
||||
|
|
|
|||
Loading…
Reference in a new issue