mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-01 06:47:33 +02:00
Merge pull request #13643 from AllForNothing/quick-fixing
Fix null pointer exception for auth guard
This commit is contained in:
commit
fe2ecf42ea
@ -49,7 +49,7 @@ export class AuthCheckGuard implements CanActivate, CanActivateChild {
|
||||
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | boolean {
|
||||
// When routing change, clear
|
||||
this.msgHandler.clear();
|
||||
if (this.appConfigService.getConfig().read_only.toString() === 'true') {
|
||||
if (this.appConfigService.getConfig().read_only && this.appConfigService.getConfig().read_only.toString() === 'true') {
|
||||
this.msgHandler.handleReadOnly();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user