Properly hid integrations menu option for non-admins when EnableOnlyAdminIntegrations is true (#3175)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
8563fbc41e
Коммит
a4d7367e2f
@@ -153,7 +153,7 @@ export default class NavbarDropdown extends React.Component {
|
|||||||
window.mm_config.EnableIncomingWebhooks === 'true' ||
|
window.mm_config.EnableIncomingWebhooks === 'true' ||
|
||||||
window.mm_config.EnableOutgoingWebhooks === 'true' ||
|
window.mm_config.EnableOutgoingWebhooks === 'true' ||
|
||||||
window.mm_config.EnableCommands === 'true';
|
window.mm_config.EnableCommands === 'true';
|
||||||
if (integrationsEnabled && (isAdmin || window.EnableOnlyAdminIntegrations !== 'true')) {
|
if (integrationsEnabled && (isAdmin || window.mm_config.EnableOnlyAdminIntegrations !== 'true')) {
|
||||||
integrationsLink = (
|
integrationsLink = (
|
||||||
<li>
|
<li>
|
||||||
<Link to={'/' + Utils.getTeamNameFromUrl() + '/settings/integrations'}>
|
<Link to={'/' + Utils.getTeamNameFromUrl() + '/settings/integrations'}>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user