mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
fixing broken tests
This commit is contained in:
parent
3a72f5e3d2
commit
238e6cf070
@ -18,11 +18,9 @@ export class AuthenticationService {
|
||||
constructor(private _userService: UserService) {
|
||||
this.user = new BehaviorSubject(null);
|
||||
|
||||
console.log(ServerInject.user);
|
||||
//picking up session..
|
||||
if (this.isAuthenticated() == false && Cookie.get('pigallery2-session') != null) {
|
||||
if (typeof ServerInject !== "undefined" && typeof ServerInject.user !== "undefined") {
|
||||
console.log(ServerInject.user);
|
||||
this.user.next(ServerInject.user);
|
||||
}
|
||||
this.getSessionUser();
|
||||
|
Loading…
Reference in New Issue
Block a user