Fixed get/delete user with external org
MODIFY
src/server/rest/v1/service/UserService.ts
src/server/rest/v1/service/UserService.ts
@@ -122,7 +122,7 @@ export default class UserService {
const userID = UserValidator.getInstance().validateUserGetByID(req.query).ID.toString();
// Check and Get User
const user = await UtilsService.checkAndGetUserAuthorization(
- req.tenant, req.user, userID, Action.DELETE, action);
+ req.tenant, req.user, userID, Action.DELETE, action, null, false);
// Delete OCPI User
if (!user.issuer) {
// Delete User
@@ -299,7 +299,7 @@ export default class UserService {
const user = await UtilsService.checkAndGetUserAuthorization(
req.tenant, req.user, filteredRequest.ID.toString(), Action.READ, action, {
withImage: true
- }, true);
+ }, false);
res.json(user);
next();
}

Fixed get/delete user with external org