diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2017-02-08 14:38:12 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2017-02-08 14:38:12 +0100 |
commit | 3ba637dda13a82c5e702dd09d9ca11710a28eac8 (patch) | |
tree | 59dd834646f9f0abb991d46738ad50a0a2e5beac /server/sonar-web/src/main/js/apps | |
parent | ab05d332e83ee64f802a794a8c1e0409820827e7 (diff) | |
download | sonarqube-3ba637dda13a82c5e702dd09d9ca11710a28eac8.tar.gz sonarqube-3ba637dda13a82c5e702dd09d9ca11710a28eac8.zip |
SONAR-8659 display only projects for custom organizations
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects-admin/AppContainer.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects-admin/AppContainer.js b/server/sonar-web/src/main/js/apps/projects-admin/AppContainer.js index 6f3e5c141a1..1f07522eb37 100644 --- a/server/sonar-web/src/main/js/apps/projects-admin/AppContainer.js +++ b/server/sonar-web/src/main/js/apps/projects-admin/AppContainer.js @@ -29,10 +29,14 @@ class AppContainer extends React.Component { this.props.organization.canProvisionProjects : this.props.user.permissions.global.indexOf('provisioning') !== -1; + const topLevelQualifiers = this.props.organization && !this.props.organization.isDefault ? + ['TRK'] : + this.props.rootQualifiers; + return ( <Main hasProvisionPermission={hasProvisionPermission} - topLevelQualifiers={this.props.rootQualifiers} + topLevelQualifiers={topLevelQualifiers} organization={this.props.organization}/> ); } |