Removed last REST response filtering
MODIFY
src/server/rest/v1/service/AuthService.ts
src/server/rest/v1/service/AuthService.ts
@@ -536,11 +536,7 @@ export default class AuthService {
}
// Get it
const endUserLicenseAgreement = await UserStorage.getEndUserLicenseAgreement(tenantID, filteredRequest.Language);
- res.json(
- // Filter
- AuthSecurity.filterEndUserLicenseAgreementResponse(
- endUserLicenseAgreement)
- );
+ res.json(endUserLicenseAgreement);
next();
}

MODIFY
src/server/rest/v1/service/security/AuthSecurity.ts
src/server/rest/v1/service/security/AuthSecurity.ts
@@ -80,15 +80,4 @@ export default class AuthSecurity {
}
return filteredRequest as {Language: string; tenant: string};
}
-
- static filterEndUserLicenseAgreementResponse(endUserLicenseAgreement: Eula): Eula {
- const filteredEndUserLicenseAgreement = {} as Eula;
-
- if (!endUserLicenseAgreement) {
- return null;
- }
- // Set
- filteredEndUserLicenseAgreement.text = endUserLicenseAgreement.text;
- return filteredEndUserLicenseAgreement;
- }
}

Removed last REST response filtering