From e10a576b625a48e6e3e1161aa0e53c32397667dd Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Mon, 11 Jul 2016 08:37:26 -0400 Subject: [PATCH] Always allow system admins to see the Integrations sidebar (#3536) --- webapp/components/backstage/components/backstage_sidebar.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/components/backstage/components/backstage_sidebar.jsx b/webapp/components/backstage/components/backstage_sidebar.jsx index ea0849c8a4..3434b315a6 100644 --- a/webapp/components/backstage/components/backstage_sidebar.jsx +++ b/webapp/components/backstage/components/backstage_sidebar.jsx @@ -45,7 +45,9 @@ export default class BackstageSidebar extends React.Component { return null; } - if (window.mm_config.EnableOnlyAdminIntegrations !== 'false' && !TeamStore.isTeamAdmin(this.props.user.id, this.props.team.id)) { + if (window.mm_config.EnableOnlyAdminIntegrations !== 'false' && + !Utils.isSystemAdmin(this.props.user.roles) && + !TeamStore.isTeamAdmin(this.props.user.id, this.props.team.id)) { return null; }