basic user can only list his badges
MODIFY
src/server/rest/v1/service/UserService.ts
src/server/rest/v1/service/UserService.ts
@@ -1132,7 +1132,7 @@ export default class UserService {
const tags = await UserStorage.getTags(req.user.tenantID,
{
search: filteredRequest.Search,
- userIDs: [userID],
+ userIDs: userID ? [userID] : null,
issuer: filteredRequest.Issuer,
active: filteredRequest.Active,
withUser: true,

basic user can only list his badges