Skip to content

Commit e1a592a

Browse files
committed
add access tokens to organization member permissions
1 parent 53f65c4 commit e1a592a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

integration-tests/tests/api/organization/members.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ test.concurrent('owner of an organization should have all scopes', async ({ expe
1111
[
1212
organization:describe,
1313
support:manageTickets,
14+
accessToken:modify,
1415
organization:modifySlug,
1516
auditLog:export,
1617
organization:delete,

packages/services/api/src/modules/organization/lib/organization-member-permissions.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ export const permissionGroups: Array<PermissionGroup> = [
1717
title: 'Access support tickets',
1818
description: 'Member can access, create and reply to support tickets.',
1919
},
20+
{
21+
id: 'accessToken:modify',
22+
title: 'Manage organization access tokens',
23+
description: 'Member can create and delete organization access tokens.',
24+
warning:
25+
'Granting a role the ability to manage members enables it to elevate its own permissions.',
26+
},
2027
{
2128
id: 'organization:modifySlug',
2229
title: 'Update organization slug',
@@ -266,7 +273,6 @@ assertAllRulesAreAssigned([
266273
'appDeployment:publish',
267274
'appDeployment:retire',
268275
'usage:report',
269-
'accessToken:modify',
270276
]);
271277

272278
/**

0 commit comments

Comments
 (0)