aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-08-09 21:45:21 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-08-09 21:45:21 +0200
commit7da18e4420c4b71a8ecfda07f39324fbfec081c3 (patch)
tree2755feedd730a78cdc407e7a79bcbfce3ebe71c8 /client/src/app/app.component.ts
parent68a3b9f2aacb0225ae8b883b561b144bac339cbd (diff)
downloadPeerTube-7da18e4420c4b71a8ecfda07f39324fbfec081c3.tar.gz
PeerTube-7da18e4420c4b71a8ecfda07f39324fbfec081c3.tar.zst
PeerTube-7da18e4420c4b71a8ecfda07f39324fbfec081c3.zip
Client: add user management
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