Properly hid integrations menu option for non-admins when EnableOnlyAdminIntegrations is true (#3175)

Этот коммит содержится в:
Harrison Healey
2016-05-31 12:56:26 -04:00
коммит произвёл Joram Wilander
родитель 8563fbc41e
Коммит a4d7367e2f

Просмотреть файл

@@ -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'}>