Fixed an issue where we messed up the pages and routing.

Also added the requester onto the movie requests #865 #1513
This commit is contained in:
Jamie.Rees 2017-09-29 14:54:44 +01:00
parent 6588fa8ca3
commit 66ad62beb5
3 changed files with 21 additions and 11 deletions

View file

@ -35,7 +35,9 @@ export class AppComponent implements OnInit {
this.showNav = this.authService.loggedIn();
});
this.jobService.getCachedUpdate().subscribe(x => this.updateAvailable = x);
if (this.user !== null && this.user.name) {
this.jobService.getCachedUpdate().subscribe(x => this.updateAvailable = x);
}
}
public hasRole(role: string): boolean {