diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-06-05 16:34:43 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-06-05 16:34:42 -0400 |
commit | a3171048e089fba22360e90fe5312be344ab1739 (patch) | |
tree | 2a2a3b4f021454c516260ea44b61030d022d3e7c /webapp/utils | |
parent | db1b202e421fd46a183a3fe8fdcf710e3d62a0a3 (diff) | |
download | chat-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')
-rw-r--r-- | webapp/utils/utils.jsx | 4 |
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; } |