Skip to content

Commit ef574df

Browse files
committed
adjustments
Signed-off-by: Anupam Kumar <[email protected]>
1 parent 2c28c3c commit ef574df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Controller/HarpController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function isUserEnabled(string $userId): bool {
107107
* 0: PUBLIC
108108
* 1: USER
109109
* 2: ADMIN
110-
* @return DataResponse { user_id: string|null, access_level: int }
110+
* @return DataResponse array{ user_id: string, access_level: int }
111111
*/
112112
#[PublicPage]
113113
#[NoCSRFRequired]
@@ -119,7 +119,7 @@ public function getUserInfo(): DataResponse {
119119
if ($this->userId === null) {
120120
$this->logger->debug('No user found in the harp request');
121121
return new DataResponse([
122-
'user_id' => null,
122+
'user_id' => '',
123123
'access_level' => ExAppRouteAccessLevel::PUBLIC->value,
124124
]);
125125
}

0 commit comments

Comments
 (0)