mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-27 05:37:15 -05:00
Properly hid integrations menu option for non-admins when EnableOnlyAdminIntegrations is true (#3175)
This commit is contained in:
committed by
Joram Wilander
parent
8563fbc41e
commit
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'}>
|
||||
|
||||
Reference in New Issue
Block a user