diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index 1a768f938b..f622aeb2d2 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -272,13 +272,16 @@ public function checkFileInfo($fileId, $access_token) { if ($user !== null) { $response['UserExtraInfo']['avatar'] = $this->urlGenerator->linkToRouteAbsolute('core.avatar.getAvatar', ['userId' => $wopi->getEditorUid(), 'size' => self::WOPI_AVATAR_SIZE]); if ($this->groupManager->isAdmin($wopi->getEditorUid())) { - $response['UserExtraInfo']['is_admin'] = true; + $response['UserExtraInfo']['is_admin'] = true; // DEPRECATED + $response['IsAdminUser'] = true; } else { - $response['UserExtraInfo']['is_admin'] = false; + $response['UserExtraInfo']['is_admin'] = false; // DEPRECATED + $response['IsAdminUser'] = false; } } else { $response['UserExtraInfo']['avatar'] = $this->urlGenerator->linkToRouteAbsolute('core.GuestAvatar.getAvatar', ['guestName' => urlencode($wopi->getGuestDisplayname()), 'size' => self::WOPI_AVATAR_SIZE]); - $response['UserExtraInfo']['is_admin'] = false; + $response['UserExtraInfo']['is_admin'] = false; // DEPRECATED + $response['IsAdminUser'] = false; } if ($isPublic) {