aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/permissions
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2017-02-06 10:55:12 +0100
committerStas Vilchik <stas-vilchik@users.noreply.github.com>2017-02-07 11:07:02 +0100
commitf5764b41dffa181327a098dccbf56773a76411f2 (patch)
tree8a2d4e7e7c5746998f5645f3f37fbe97703f70ae /server/sonar-web/src/main/js/apps/permissions
parentab71ca77ca97a03b503f65449132c007ae32f269 (diff)
downloadsonarqube-f5764b41dffa181327a098dccbf56773a76411f2.tar.gz
sonarqube-f5764b41dffa181327a098dccbf56773a76411f2.zip
display 404 when accessing on-prem admin pages being in cloud mode
Diffstat (limited to 'server/sonar-web/src/main/js/apps/permissions')
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/routes.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/permissions/routes.js b/server/sonar-web/src/main/js/apps/permissions/routes.js
index a273a2914b6..ee80d1143a0 100644
--- a/server/sonar-web/src/main/js/apps/permissions/routes.js
+++ b/server/sonar-web/src/main/js/apps/permissions/routes.js
@@ -21,9 +21,10 @@ import React from 'react';
import { IndexRoute } from 'react-router';
import GlobalPermissionsApp from './global/components/App';
import ProjectPermissionsApp from './project/components/App';
+import forSingleOrganization from '../organizations/forSingleOrganization';
export const globalPermissionsRoutes = (
- <IndexRoute component={GlobalPermissionsApp}/>
+ <IndexRoute component={forSingleOrganization(GlobalPermissionsApp)}/>
);
export const projectPermissionsRoutes = (