summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-07-11 08:37:26 -0400
committerGitHub <noreply@github.com>2016-07-11 08:37:26 -0400
commite10a576b625a48e6e3e1161aa0e53c32397667dd (patch)
tree33f94e49dcfef7ed12dabefb36d3fd3ff0e3c16a /webapp/components
parentdd9925227870525339eb5c6ae7ab3be2a21ab923 (diff)
downloadchat-e10a576b625a48e6e3e1161aa0e53c32397667dd.tar.gz
chat-e10a576b625a48e6e3e1161aa0e53c32397667dd.tar.bz2
chat-e10a576b625a48e6e3e1161aa0e53c32397667dd.zip
Always allow system admins to see the Integrations sidebar (#3536)
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/backstage/components/backstage_sidebar.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/backstage/components/backstage_sidebar.jsx b/webapp/components/backstage/components/backstage_sidebar.jsx
index ea0849c8a..3434b315a 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;
}