Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Bugfix/restrict date range change permission in Zen mode (#4877)
Thomas Kaul376b1416bbb5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8bd42dc7ef..e698a08af6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## Unreleased++### Fixed++- Restricted the date range change permission in the _Zen Mode_+## 2.169.0 - 2025-06-08### Changeddiff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.tsindex bc3eb69b7f..105dfdd79e 100644--- a/apps/client/src/app/app.component.ts+++ b/apps/client/src/app/app.component.ts@@ -160,12 +160,11 @@ export class AppComponent implements OnDestroy, OnInit {this.currentSubRoute = urlSegments[1]?.path;if (- (this.currentRoute === 'home' && !this.currentSubRoute) ||- (this.currentRoute === 'home' &&- this.currentSubRoute === 'holdings') ||- (this.currentRoute === 'portfolio' && !this.currentSubRoute) ||- (this.currentRoute === 'zen' && !this.currentSubRoute) ||- (this.currentRoute === 'zen' && this.currentSubRoute === 'holdings')+ ((this.currentRoute === 'home' && !this.currentSubRoute) ||+ (this.currentRoute === 'home' &&+ this.currentSubRoute === 'holdings') ||+ (this.currentRoute === 'portfolio' && !this.currentSubRoute)) &&+ this.user?.settings?.viewMode !== 'ZEN') {this.hasPermissionToChangeDateRange = true;} else {