From 59911925c244b653d2db5e91efe2a24ce3935f8c Mon Sep 17 00:00:00 2001
From: Thomas <4159106+dtslvr@users.noreply.github.com>
Date: Fri, 14 May 2021 21:35:19 +0200
Subject: [PATCH] Feature/update sitemap.xml (#88)
* Update sitemap
* Update changelog
* Fix permissions in header component
---
CHANGELOG.md | 6 +++++
.../app/components/header/header.component.ts | 26 +++++++++----------
apps/client/src/assets/sitemap.xml | 10 ++++---
3 files changed, 25 insertions(+), 17 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 030592f9c..71f490525 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
+
+### Changed
+
+- Updated the sitemap
+
## 1.2.0 - 14.05.2021
### Changed
diff --git a/apps/client/src/app/components/header/header.component.ts b/apps/client/src/app/components/header/header.component.ts
index 29f1251e2..b74c7061a 100644
--- a/apps/client/src/app/components/header/header.component.ts
+++ b/apps/client/src/app/components/header/header.component.ts
@@ -49,22 +49,20 @@ export class HeaderComponent implements OnChanges {
}
public ngOnChanges() {
- if (this.user) {
- this.hasPermissionForSocialLogin = hasPermission(
- this.info?.globalPermissions,
- permissions.enableSocialLogin
- );
+ this.hasPermissionForSocialLogin = hasPermission(
+ this.info?.globalPermissions,
+ permissions.enableSocialLogin
+ );
- this.hasPermissionForSubscription = hasPermission(
- this.info?.globalPermissions,
- permissions.enableSubscription
- );
+ this.hasPermissionForSubscription = hasPermission(
+ this.info?.globalPermissions,
+ permissions.enableSubscription
+ );
- this.hasPermissionToAccessAdminControl = hasPermission(
- this.user.permissions,
- permissions.accessAdminControl
- );
- }
+ this.hasPermissionToAccessAdminControl = hasPermission(
+ this.user?.permissions,
+ permissions.accessAdminControl
+ );
}
public impersonateAccount(aId: string) {
diff --git a/apps/client/src/assets/sitemap.xml b/apps/client/src/assets/sitemap.xml
index a24335d3d..fb4319d6a 100644
--- a/apps/client/src/assets/sitemap.xml
+++ b/apps/client/src/assets/sitemap.xml
@@ -6,14 +6,18 @@
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
https://ghostfol.io
- 2021-03-18T20:24:46+00:00
+ 2021-05-14T20:24:46+00:00
https://ghostfol.io/about
- 2021-03-18T20:24:46+00:00
+ 2021-05-14T20:24:46+00:00
+
+
+ https://ghostfol.io/pricing
+ 2021-05-14T20:24:46+00:00
https://ghostfol.io/resources
- 2021-03-18T20:24:46+00:00
+ 2021-05-14T20:24:46+00:00