From 57555718d239ea29a137f5f56d83ca8d408d5c2d Mon Sep 17 00:00:00 2001 From: Mazdak Gibran <141390141+mazdakgibran@users.noreply.github.com> Date: Thu, 29 Jan 2026 12:08:05 +0500 Subject: [PATCH] access only to superadmin access only to superadmin, admin and user will be see screen according to permission. added logo to dashboard --- src/app/dashboard/dashboard.component.html | 4 +++- src/app/dashboard/dashboard.component.scss | 14 ++++++++++++++ src/app/services/authenticate.service.ts | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/app/dashboard/dashboard.component.html b/src/app/dashboard/dashboard.component.html index 9c5fce9..0f37358 100644 --- a/src/app/dashboard/dashboard.component.html +++ b/src/app/dashboard/dashboard.component.html @@ -1 +1,3 @@ -

dashboard works!

+
+

dashboard works!

+
diff --git a/src/app/dashboard/dashboard.component.scss b/src/app/dashboard/dashboard.component.scss index e69de29..9d05b88 100644 --- a/src/app/dashboard/dashboard.component.scss +++ b/src/app/dashboard/dashboard.component.scss @@ -0,0 +1,14 @@ +.dashboard-bg { + position: relative; + min-height: 100vh; + z-index: 1; +} +.dashboard-bg::after { + content: ""; + position: absolute; + inset: 0; + background: url('/assets/images/logo.png') center / contain no-repeat; + background-size: 350px; + opacity: 0.5; /* less transparent */ + z-index: -1; +} \ No newline at end of file diff --git a/src/app/services/authenticate.service.ts b/src/app/services/authenticate.service.ts index d6ceaa3..fe6e386 100644 --- a/src/app/services/authenticate.service.ts +++ b/src/app/services/authenticate.service.ts @@ -81,7 +81,7 @@ export class AuthenticationService { isAdminUser(){ if (this.storageService && this.storageService.getItem('user') != null) { let cachedUser = JSON.parse(this.storageService.getItem('user') || '{}'); - return cachedUser.user.role === HiddenValues.ADMIN_USER || cachedUser.user.role === HiddenValues.SUPER_ADMIN; + return cachedUser.user.role === HiddenValues.SUPER_ADMIN; } return false; } -- 2.32.0