summaryrefslogtreecommitdiffstats
path: root/webapp/utils/utils.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-06-05 16:34:43 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-06-05 16:34:42 -0400
commita3171048e089fba22360e90fe5312be344ab1739 (patch)
tree2a2a3b4f021454c516260ea44b61030d022d3e7c /webapp/utils/utils.jsx
parentdb1b202e421fd46a183a3fe8fdcf710e3d62a0a3 (diff)
downloadchat-a3171048e089fba22360e90fe5312be344ab1739.tar.gz
chat-a3171048e089fba22360e90fe5312be344ab1739.tar.bz2
chat-a3171048e089fba22360e90fe5312be344ab1739.zip
PLT-6724 Hide options relating to channel admin when not licensed (#6583)
Diffstat (limited to 'webapp/utils/utils.jsx')
-rw-r--r--webapp/utils/utils.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index 469f793c8..2b685a793 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -66,6 +66,10 @@ export function isInRole(roles, inRole) {
}
export function isChannelAdmin(roles) {
+ if (global.mm_license.IsLicensed !== 'true') {
+ return false;
+ }
+
if (isInRole(roles, 'channel_admin')) {
return true;
}