diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-29 13:16:55 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-29 13:16:55 -0700 |
commit | 0c4227994bf0b33b129de4075c591e228a93c8de (patch) | |
tree | f0c3ac0e78b96b1ebc915e238598e058cbe3c8ee /web/react/utils | |
parent | 942702ff1a6cc3763742ea9fec6ecc587d998411 (diff) | |
download | chat-0c4227994bf0b33b129de4075c591e228a93c8de.tar.gz chat-0c4227994bf0b33b129de4075c591e228a93c8de.tar.bz2 chat-0c4227994bf0b33b129de4075c591e228a93c8de.zip |
PLT-435 adding system console link to RHS
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/utils.jsx | 8 |
1 files changed, 8 insertions, 0 deletions
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('.'); |