From 0c4227994bf0b33b129de4075c591e228a93c8de Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Tue, 29 Sep 2015 13:16:55 -0700 Subject: PLT-435 adding system console link to RHS --- web/react/utils/utils.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/react/utils') diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index ad4575c6e..91e47730e 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -78,6 +78,14 @@ export function isAdmin(roles) { return false; } +export function isSystemAdmin(roles) { + if (isInRole(roles, 'system_admin')) { + return true; + } + + return false; +} + export function getDomainWithOutSub() { var parts = window.location.host.split('.'); -- cgit v1.2.3-1-g7c22