diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-07-11 08:37:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-11 08:37:26 -0400 |
commit | e10a576b625a48e6e3e1161aa0e53c32397667dd (patch) | |
tree | 33f94e49dcfef7ed12dabefb36d3fd3ff0e3c16a /webapp/components/backstage | |
parent | dd9925227870525339eb5c6ae7ab3be2a21ab923 (diff) | |
download | chat-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/backstage')
-rw-r--r-- | webapp/components/backstage/components/backstage_sidebar.jsx | 4 |
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; } |