diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-02-02 10:44:23 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-02-02 10:44:23 +0200 |
| commit | 97b3aa3cef122cf6e695a5122b75fdfcee9ebad3 (patch) | |
| tree | 07b365ff81be3b0bb9c78518b5e04333e1b756f3 | |
| parent | 62609d5ac9cd59f3e4f019be8520c965221e017b (diff) | |
| download | DevHive-97b3aa3cef122cf6e695a5122b75fdfcee9ebad3.tar DevHive-97b3aa3cef122cf6e695a5122b75fdfcee9ebad3.tar.gz DevHive-97b3aa3cef122cf6e695a5122b75fdfcee9ebad3.zip | |
Fixed admin panel showing in other user's profile pages
| -rw-r--r-- | src/DevHive.Angular/src/app/components/profile/profile.component.html | 2 |
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> |
