diff --git a/.env.example b/.env.example index f3d5e3634..e4a935626 100644 --- a/.env.example +++ b/.env.example @@ -13,4 +13,4 @@ POSTGRES_PASSWORD= # VARIOUS ACCESS_TOKEN_SALT= DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer -JWT_SECRET_KEY= \ No newline at end of file +JWT_SECRET_KEY= diff --git a/apps/client/src/app/components/admin-overview/admin-overview.component.ts b/apps/client/src/app/components/admin-overview/admin-overview.component.ts index a8f03bcbe..5d1138be8 100644 --- a/apps/client/src/app/components/admin-overview/admin-overview.component.ts +++ b/apps/client/src/app/components/admin-overview/admin-overview.component.ts @@ -76,7 +76,6 @@ import { takeUntil } from 'rxjs/operators'; export class GfAdminOverviewComponent implements OnDestroy, OnInit { public couponDuration: StringValue = '14 days'; public coupons: Coupon[]; - public hasPermissionForAuthToken: boolean; public hasPermissionForSubscription: boolean; public hasPermissionForSystemMessage: boolean; public hasPermissionToSyncDemoUserAccount: boolean; @@ -109,11 +108,6 @@ export class GfAdminOverviewComponent implements OnDestroy, OnInit { if (state?.user) { this.user = state.user; - this.hasPermissionForAuthToken = hasPermission( - this.info.globalPermissions, - permissions.enableAuthToken - ); - this.hasPermissionForSubscription = hasPermission( this.info.globalPermissions, permissions.enableSubscription diff --git a/apps/client/src/app/pages/features/features-page.component.ts b/apps/client/src/app/pages/features/features-page.component.ts index d89156d69..dc2dfaf42 100644 --- a/apps/client/src/app/pages/features/features-page.component.ts +++ b/apps/client/src/app/pages/features/features-page.component.ts @@ -24,7 +24,6 @@ import { Subject, takeUntil } from 'rxjs'; templateUrl: './features-page.html' }) export class GfFeaturesPageComponent implements OnDestroy { - public hasPermissionForAuthToken: boolean; public hasPermissionForSubscription: boolean; public hasPermissionToCreateUser: boolean; public info: InfoItem; @@ -53,11 +52,6 @@ export class GfFeaturesPageComponent implements OnDestroy { } }); - this.hasPermissionForAuthToken = hasPermission( - this.info?.globalPermissions, - permissions.enableAuthToken - ); - this.hasPermissionForSubscription = hasPermission( this.info?.globalPermissions, permissions.enableSubscription diff --git a/apps/client/src/app/pages/features/features-page.html b/apps/client/src/app/pages/features/features-page.html index 314de8677..d172347f7 100644 --- a/apps/client/src/app/pages/features/features-page.html +++ b/apps/client/src/app/pages/features/features-page.html @@ -309,7 +309,7 @@ - @if (!user && hasPermissionToCreateUser) { + @if (hasPermissionToCreateUser && !user) { - } @else if (!user && hasPermissionToCreateUser) { + } @else if (hasPermissionToCreateUser && !user) {