diff options
| Commit | 97b3aa3cef122cf6e695a5122b75fdfcee9ebad3 (patch) | |
|---|---|---|
| Author | 2021-02-02 10:44:23 +0200 | |
| Committer | 2021-02-02 10:44:23 +0200 | |
| Files | 07b365ff81be3b0bb9c78518b5e04333e1b756f3 /src | |
| DevHive-97b3aa3cef122cf6e695a5122b75fdfcee9ebad3.tar DevHive-97b3aa3cef122cf6e695a5122b75fdfcee9ebad3.tar.gz DevHive-97b3aa3cef122cf6e695a5122b75fdfcee9ebad3.zip | ||
| Parent | 62609d5ac9cd59f3e4f019be8520c965221e017b (diff) | |
Fixed admin panel showing in other user's profile pages
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | src/DevHive.Angular/src/app/components/profile/profile.component.html | 2 |
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> |
