summaryrefslogtreecommitdiffstats
path: root/web/react/utils/utils.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-09-29 17:28:59 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-09-29 17:28:59 -0400
commitfb9fe1995ca7502bea23e1ab7082e8c8757251fb (patch)
treea79e62ded0c7f8bd27e0317ad599483132111bfa /web/react/utils/utils.jsx
parent08af14abc9c1a7cefc4e516360b4a2c8cd6dcc05 (diff)
parent0c4227994bf0b33b129de4075c591e228a93c8de (diff)
downloadchat-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.jsx8
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('.');