aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-02-02 10:44:23 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-02-02 10:44:23 +0200
commit97b3aa3cef122cf6e695a5122b75fdfcee9ebad3 (patch)
tree07b365ff81be3b0bb9c78518b5e04333e1b756f3 /src
parent62609d5ac9cd59f3e4f019be8520c965221e017b (diff)
downloadDevHive-97b3aa3cef122cf6e695a5122b75fdfcee9ebad3.tar
DevHive-97b3aa3cef122cf6e695a5122b75fdfcee9ebad3.tar.gz
DevHive-97b3aa3cef122cf6e695a5122b75fdfcee9ebad3.zip
Fixed admin panel showing in other user's profile pages
Diffstat (limited to 'src')
-rw-r--r--src/DevHive.Angular/src/app/components/profile/profile.component.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DevHive.Angular/src/app/components/profile/profile.component.html b/src/DevHive.Angular/src/app/components/profile/profile.component.html
index 614117c..e2dacd1 100644
--- a/src/DevHive.Angular/src/app/components/profile/profile.component.html
+++ b/src/DevHive.Angular/src/app/components/profile/profile.component.html
@@ -4,7 +4,7 @@
<nav id="navigation">
<button class="submit-btn" (click)="goBack()">ᐊ Back</button>
<button class="submit-btn" (click)="navigateToSettings()" *ngIf="loggedInUser">Settings</button>
- <button class="submit-btn" (click)="navigateToAdminPanel()" *ngIf="isAdminUser">Panel</button>
+ <button class="submit-btn" (click)="navigateToAdminPanel()" *ngIf="loggedInUser && isAdminUser">Panel</button>
<button class="submit-btn" (click)="logout()" *ngIf="loggedInUser">Logout</button>
</nav>
<hr>