Skip to content

Commit

Permalink
Don't send email in extra info.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Dec 19, 2024
1 parent d71994e commit e76feb2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ public function wopiCheckFileInfo(string $id, Request $request): Response {
'LastModifiedTime' => $mtime->format('c'),
'UserId' => $jwt_payload['uid'],
'UserFriendlyName' => $user->getDisplayName(),
'UserExtraInfo' => [
'mail' => $user->getEmail(),
],
'UserCanWrite' => $can_write,
'IsAdminUser' => $user->hasPermission('administer collabora instance'),
'IsAnonymousUser' => $user->isAnonymous(),
Expand Down
3 changes: 0 additions & 3 deletions tests/src/Kernel/Controller/WopiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ public function testWopiGetFileInfo(): void {
'LastModifiedTime' => $file_changed_time->format('c'),
'UserId' => $this->user->id(),
'UserFriendlyName' => $this->user->getDisplayName(),
'UserExtraInfo' => [
'mail' => $this->user->getEmail(),
],
'UserCanWrite' => FALSE,
'IsAdminUser' => FALSE,
'IsAnonymousUser' => FALSE,
Expand Down

0 comments on commit e76feb2

Please sign in to comment.