aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/nav/global-navbar-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/nav/global-navbar-view.js')
-rw-r--r--server/sonar-web/src/main/js/nav/global-navbar-view.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/nav/global-navbar-view.js b/server/sonar-web/src/main/js/nav/global-navbar-view.js
index 6103084b73c..64b199752a1 100644
--- a/server/sonar-web/src/main/js/nav/global-navbar-view.js
+++ b/server/sonar-web/src/main/js/nav/global-navbar-view.js
@@ -83,9 +83,9 @@ define([
userName: window.SS.userName,
isUserAdmin: window.SS.isUserAdmin,
- canManageGlobalDashboards: window.SS.user != null,
- canManageIssueFilters: window.SS.user != null,
- canManageMeasureFilters: window.SS.user != null
+ canManageGlobalDashboards: !!window.SS.user,
+ canManageIssueFilters: !!window.SS.user,
+ canManageMeasureFilters: !!window.SS.user
});
}
});