diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-05-31 12:56:26 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-05-31 12:56:26 -0400 |
commit | a4d7367e2f677cb55d764037ced7973e0c975755 (patch) | |
tree | b70b3d3011347aa546a57aef1e86f3db035df04e | |
parent | 8563fbc41ef2d18d4067928cc82f53f745cae446 (diff) | |
download | chat-a4d7367e2f677cb55d764037ced7973e0c975755.tar.gz chat-a4d7367e2f677cb55d764037ced7973e0c975755.tar.bz2 chat-a4d7367e2f677cb55d764037ced7973e0c975755.zip |
Properly hid integrations menu option for non-admins when EnableOnlyAdminIntegrations is true (#3175)
-rw-r--r-- | webapp/components/navbar_dropdown.jsx | 2 |
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'}> |