Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.

Commit 56031d9

Browse files
committed
check for constant first
1 parent 4e1c764 commit 56031d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/webapp/portal/main/controllers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ define(['angular','require'], function(angular, require) {
7373
mainService.getUser().then(function(result){
7474
that.user = result;
7575
//check if is guest
76-
if (that.user && that.user.userName === NAMES.guestUserName)
76+
if (NAMES.guestUserName && that.user && that.user.userName === NAMES.guestUserName)
7777
$rootScope.GuestMode = true;
7878

7979
});

0 commit comments

Comments
 (0)