From c4b2c3d7050c3639ec7672e1ba8b6dd266bd59dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Wed, 29 Nov 2017 17:18:23 +0100 Subject: [PATCH] SONAR-10135 Allow to change Quality Gate permission at organization level --- .../apps/permissions/global/components/AllHoldersList.tsx | 8 +------- 1 file changed, 1 insertion(+), 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 { }; 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), -- 2.39.5