Feature/restrict permissions of demo user (#4697)
* Restrict permissions of demo user * Update changelog
This commit is contained in:
parent
ccbf958aa6
commit
698d71fb3a
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Harmonized the data providers management style of the admin control panel
|
- Harmonized the data providers management style of the admin control panel
|
||||||
|
- Restricted the permissions of the demo user
|
||||||
- Renamed `Order` to `activities` in the `User` database schema
|
- Renamed `Order` to `activities` in the `User` database schema
|
||||||
- Improved the language localization for Catalan (`ca`)
|
- Improved the language localization for Catalan (`ca`)
|
||||||
- Improved the language localization for Chinese (`zh`)
|
- Improved the language localization for Chinese (`zh`)
|
||||||
|
@ -394,9 +394,11 @@ export class UserService {
|
|||||||
// Reset holdings view mode
|
// Reset holdings view mode
|
||||||
user.Settings.settings.holdingsViewMode = undefined;
|
user.Settings.settings.holdingsViewMode = undefined;
|
||||||
} else if (user.subscription?.type === 'Premium') {
|
} else if (user.subscription?.type === 'Premium') {
|
||||||
currentPermissions.push(permissions.createApiKey);
|
if (!hasRole(user, Role.DEMO)) {
|
||||||
currentPermissions.push(permissions.enableDataProviderGhostfolio);
|
currentPermissions.push(permissions.createApiKey);
|
||||||
currentPermissions.push(permissions.reportDataGlitch);
|
currentPermissions.push(permissions.enableDataProviderGhostfolio);
|
||||||
|
currentPermissions.push(permissions.reportDataGlitch);
|
||||||
|
}
|
||||||
|
|
||||||
currentPermissions = without(
|
currentPermissions = without(
|
||||||
currentPermissions,
|
currentPermissions,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user