diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-09-29 17:28:59 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-09-29 17:28:59 -0400 |
commit | fb9fe1995ca7502bea23e1ab7082e8c8757251fb (patch) | |
tree | a79e62ded0c7f8bd27e0317ad599483132111bfa /web/react/utils/utils.jsx | |
parent | 08af14abc9c1a7cefc4e516360b4a2c8cd6dcc05 (diff) | |
parent | 0c4227994bf0b33b129de4075c591e228a93c8de (diff) | |
download | chat-fb9fe1995ca7502bea23e1ab7082e8c8757251fb.tar.gz chat-fb9fe1995ca7502bea23e1ab7082e8c8757251fb.tar.bz2 chat-fb9fe1995ca7502bea23e1ab7082e8c8757251fb.zip |
Merge pull request #862 from mattermost/PLT-435
PLT-435 adding system console link to RHS
Diffstat (limited to 'web/react/utils/utils.jsx')
-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('.'); |