aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 5764f24ca..444b6b3b4 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -45,6 +45,10 @@ export class AppComponent {
45 ); 45 );
46 } 46 }
47 47
48 isUserAdmin() {
49 return this.authService.isAdmin();
50 }
51
48 logout() { 52 logout() {
49 this.authService.logout(); 53 this.authService.logout();
50 // Redirect to home page 54 // Redirect to home page