aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-11-29 17:18:23 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-12-14 17:03:35 +0100
commitc4b2c3d7050c3639ec7672e1ba8b6dd266bd59dc (patch)
tree4dd43c26a4f284d209764a18e1126b4a676f94eb /server/sonar-web
parentab2a5de55004f8ac50a99fae9840da26ce125088 (diff)
downloadsonarqube-c4b2c3d7050c3639ec7672e1ba8b6dd266bd59dc.tar.gz
sonarqube-c4b2c3d7050c3639ec7672e1ba8b6dd266bd59dc.zip
SONAR-10135 Allow to change Quality Gate permission at organization level
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/global/components/AllHoldersList.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/permissions/global/components/AllHoldersList.tsx b/server/sonar-web/src/main/js/apps/permissions/global/components/AllHoldersList.tsx
index b9ee74940d0..913058f2e88 100644
--- a/server/sonar-web/src/main/js/apps/permissions/global/components/AllHoldersList.tsx
+++ b/server/sonar-web/src/main/js/apps/permissions/global/components/AllHoldersList.tsx
@@ -25,7 +25,6 @@ import { Organization } from '../../../../app/types';
import { PermissionUser, PermissionGroup } from '../../../../api/permissions';
const PERMISSIONS_ORDER = ['admin', 'profileadmin', 'gateadmin', 'scan', 'provisioning'];
-const PERMISSIONS_FOR_CUSTOM_ORG = ['admin', 'profileadmin', 'scan', 'provisioning'];
interface Props {
filter: string;
@@ -70,13 +69,8 @@ export default class AllHoldersList extends React.PureComponent<Props> {
};
render() {
- const order =
- this.props.organization && !this.props.organization.isDefault
- ? PERMISSIONS_FOR_CUSTOM_ORG
- : PERMISSIONS_ORDER;
-
+ const order = PERMISSIONS_ORDER;
const l10nPrefix = this.props.organization ? 'organizations_permissions' : 'global_permissions';
-
const permissions = order.map(p => ({
key: p,
name: translate(l10nPrefix, p),