Skip to content

Commit 0383aab

Browse files
authored
Fix: for frontend pages with Server Error 500 when accessed by guests or users with basic permissions
1 parent 47708bf commit 0383aab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

phpmyfaq/src/phpMyFAQ/Permission/BasicPermission.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,16 @@ public function refuseAllUserRights(int $userId): bool
275275
{
276276
return $this->repository->refuseAllUserRights($userId);
277277
}
278+
279+
/**
280+
* Returns an array with the IDs of all groups the user belongs to.
281+
* Since this is BasicPermission, always return an empty array.
282+
*
283+
* @param int $userId User ID
284+
* @return array<int>
285+
*/
286+
public function getUserGroups(int $userId): array
287+
{
288+
return [];
289+
}
278290
}

0 commit comments

Comments
 (0)