replace null check currentUser

pull/10/head
Florian Hartwich 2017-09-18 19:35:04 +02:00
parent b955db8fe1
commit 1c88cc80af
1 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@ export class LoginService {
} }
isLoggedIn() { isLoggedIn() {
return localStorage.getItem('currentUser') != null; if (localStorage.getItem('currentUser')) {
return true;
}
return false
} }
hasPermission(level: number) { hasPermission(level: number) {