Always allow system admins to see the Integrations sidebar (#3536)

Этот коммит содержится в:
Harrison Healey
2016-07-11 08:37:26 -04:00
коммит произвёл GitHub
родитель dd99252278
Коммит e10a576b62

Просмотреть файл

@@ -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;
}