summaryrefslogtreecommitdiffstats
path: root/webapp/components/navbar_dropdown.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-05-31 12:56:26 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-05-31 12:56:26 -0400
commita4d7367e2f677cb55d764037ced7973e0c975755 (patch)
treeb70b3d3011347aa546a57aef1e86f3db035df04e /webapp/components/navbar_dropdown.jsx
parent8563fbc41ef2d18d4067928cc82f53f745cae446 (diff)
downloadchat-a4d7367e2f677cb55d764037ced7973e0c975755.tar.gz
chat-a4d7367e2f677cb55d764037ced7973e0c975755.tar.bz2
chat-a4d7367e2f677cb55d764037ced7973e0c975755.zip
Properly hid integrations menu option for non-admins when EnableOnlyAdminIntegrations is true (#3175)
Diffstat (limited to 'webapp/components/navbar_dropdown.jsx')
-rw-r--r--webapp/components/navbar_dropdown.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/navbar_dropdown.jsx b/webapp/components/navbar_dropdown.jsx
index ec002bc44..6065f3474 100644
--- a/webapp/components/navbar_dropdown.jsx
+++ b/webapp/components/navbar_dropdown.jsx
@@ -153,7 +153,7 @@ export default class NavbarDropdown extends React.Component {
window.mm_config.EnableIncomingWebhooks === 'true' ||
window.mm_config.EnableOutgoingWebhooks === 'true' ||
window.mm_config.EnableCommands === 'true';
- if (integrationsEnabled && (isAdmin || window.EnableOnlyAdminIntegrations !== 'true')) {
+ if (integrationsEnabled && (isAdmin || window.mm_config.EnableOnlyAdminIntegrations !== 'true')) {
integrationsLink = (
<li>
<Link to={'/' + Utils.getTeamNameFromUrl() + '/settings/integrations'}>