summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/admin_sidebar.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-05-03 11:54:49 -0400
committerCorey Hulen <corey@hulen.com>2016-05-03 08:54:49 -0700
commit08a3cf6b38fd8fdac3b5f7176133bc1a248bc8fc (patch)
tree66687c84dbda048f09954d6b7286f0a78fe5cd45 /webapp/components/admin_console/admin_sidebar.jsx
parentffb4cb5e1051c3db13a8e3b1b2a9fd6fb8ed701c (diff)
downloadchat-08a3cf6b38fd8fdac3b5f7176133bc1a248bc8fc.tar.gz
chat-08a3cf6b38fd8fdac3b5f7176133bc1a248bc8fc.tar.bz2
chat-08a3cf6b38fd8fdac3b5f7176133bc1a248bc8fc.zip
Port HPNS from 2.2 to master (#2863)
Diffstat (limited to 'webapp/components/admin_console/admin_sidebar.jsx')
-rw-r--r--webapp/components/admin_console/admin_sidebar.jsx60
1 files changed, 32 insertions, 28 deletions
diff --git a/webapp/components/admin_console/admin_sidebar.jsx b/webapp/components/admin_console/admin_sidebar.jsx
index 9f9e85de1..da406e647 100644
--- a/webapp/components/admin_console/admin_sidebar.jsx
+++ b/webapp/components/admin_console/admin_sidebar.jsx
@@ -184,35 +184,39 @@ export default class AdminSidebar extends React.Component {
let licenseSettings;
if (global.window.mm_config.BuildEnterpriseReady === 'true') {
if (global.window.mm_license.IsLicensed === 'true') {
- ldapSettings = (
- <li>
- <a
- href='#'
- className={this.isSelected('ldap_settings')}
- onClick={this.handleClick.bind(this, 'ldap_settings', null)}
- >
- <FormattedMessage
- id='admin.sidebar.ldap'
- defaultMessage='LDAP Settings'
- />
- </a>
- </li>
- );
+ if (global.window.mm_license.LDAP === 'true') {
+ ldapSettings = (
+ <li>
+ <a
+ href='#'
+ className={this.isSelected('ldap_settings')}
+ onClick={this.handleClick.bind(this, 'ldap_settings', null)}
+ >
+ <FormattedMessage
+ id='admin.sidebar.ldap'
+ defaultMessage='LDAP Settings'
+ />
+ </a>
+ </li>
+ );
+ }
- complianceSettings = (
- <li>
- <a
- href='#'
- className={this.isSelected('compliance_settings')}
- onClick={this.handleClick.bind(this, 'compliance_settings', null)}
- >
- <FormattedMessage
- id='admin.sidebar.compliance'
- defaultMessage='Compliance Settings'
- />
- </a>
- </li>
- );
+ if (global.window.mm_license.Compliance === 'true') {
+ complianceSettings = (
+ <li>
+ <a
+ href='#'
+ className={this.isSelected('compliance_settings')}
+ onClick={this.handleClick.bind(this, 'compliance_settings', null)}
+ >
+ <FormattedMessage
+ id='admin.sidebar.compliance'
+ defaultMessage='Compliance Settings'
+ />
+ </a>
+ </li>
+ );
+ }
}
licenseSettings = (