Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions phpmyfaq/src/phpMyFAQ/Permission/BasicPermission.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,16 @@ public function refuseAllUserRights(int $userId): bool
{
return $this->repository->refuseAllUserRights($userId);
}

/**
* Returns an array with the IDs of all groups the user belongs to.
* Since this is BasicPermission, always return an empty array.
*
* @param int $userId User ID
* @return array<int>
*/
public function getUserGroups(int $userId): array
{
return [];
}
}
Loading