Temporary fix on Billing endpoint
MODIFY
src/server/rest/v1/service/BillingService.ts
src/server/rest/v1/service/BillingService.ts
@@ -328,7 +328,8 @@ export default class BillingService {
}
// Check Users
let userProject: string[] = [];
- if ((await Authorizations.canListUsers(req.user)).authorized) {
+ // Temporary fix before new auth migration
+ if (!Authorizations.isDemo(req.user)) {
userProject = [ 'userID', 'user.id', 'user.name', 'user.firstName', 'user.email' ];
}
// Filter

Temporary fix on Billing endpoint