From 7e4e739063b0445d859ccf72118aec84f347ad42 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 23 Aug 2025 14:34:04 +0200 Subject: [PATCH] Clean up --- .../src/app/pages/register/register-page.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/client/src/app/pages/register/register-page.component.ts b/apps/client/src/app/pages/register/register-page.component.ts index 2a15b129e..35b9d5cd2 100644 --- a/apps/client/src/app/pages/register/register-page.component.ts +++ b/apps/client/src/app/pages/register/register-page.component.ts @@ -36,7 +36,6 @@ import { ShowAccessTokenDialogModule } from './show-access-token-dialog/show-acc templateUrl: './register-page.html' }) export class GfRegisterPageComponent implements OnDestroy, OnInit { - public demoAuthToken: string; public deviceType: string; public hasPermissionForSocialLogin: boolean; public hasPermissionForSubscription: boolean; @@ -60,18 +59,20 @@ export class GfRegisterPageComponent implements OnDestroy, OnInit { } public ngOnInit() { - const { demoAuthToken, globalPermissions } = this.dataService.fetchInfo(); + const { globalPermissions } = this.dataService.fetchInfo(); - this.demoAuthToken = demoAuthToken; this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.hasPermissionForSocialLogin = hasPermission( globalPermissions, permissions.enableSocialLogin ); + this.hasPermissionForSubscription = hasPermission( globalPermissions, permissions.enableSubscription ); + this.hasPermissionToCreateUser = hasPermission( globalPermissions, permissions.createUserAccount