Bugfix/fix public page for non existent access (#3604)

* Handle non-existent access

* Update changelog
pull/3606/head^2
Thomas Kaul 7 months ago committed by GitHub
parent 43fca7ff43
commit dd15bba359
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded `angular` from version `18.0.4` to `18.1.1`
- Upgraded `Nx` from version `19.4.3` to `19.5.1`
### Fixed
- Fixed an issue in the public page related to a non-existent access
## 2.97.0 - 2024-07-20
### Added

@ -496,9 +496,6 @@ export class PortfolioController {
@Param('accessId') accessId
): Promise<PortfolioPublicDetails> {
const access = await this.accessService.access({ id: accessId });
const user = await this.userService.user({
id: access.userId
});
if (!access) {
throw new HttpException(
@ -508,6 +505,11 @@ export class PortfolioController {
}
let hasDetails = true;
const user = await this.userService.user({
id: access.userId
});
if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) {
hasDetails = user.subscription.type === 'Premium';
}

Loading…
Cancel
Save