Skip to content

Commit

Permalink
Add Group Permissions Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackebein committed Dec 17, 2024
1 parent 2c77170 commit 763e5b9
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 13 deletions.
4 changes: 1 addition & 3 deletions openapi/components/requests/CreateGroupRoleRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ properties:
type: boolean
default: false
permissions:
type: array
items:
type: string
$ref: ../schemas/GroupPermissions.yaml


4 changes: 1 addition & 3 deletions openapi/components/requests/UpdateGroupRoleRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ properties:
type: boolean
default: false
permissions:
type: array
items:
type: string
$ref: ../schemas/GroupPermissions.yaml
order:
type: integer
5 changes: 1 addition & 4 deletions openapi/components/schemas/GroupMyMember.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,4 @@ properties:
items:
type: string
permissions:
type: array
items:
type: string
example: group-instance-join
$ref: ./GroupPermissions.yaml
27 changes: 27 additions & 0 deletions openapi/components/schemas/GroupPermissions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
type: array
items:
type: string
enum:
- group-announcement-manage
- group-audit-view
- group-bans-manage
- group-data-manage
- group-default-role-manage
- group-galleries-manage
- group-instance-age-gated-create
- group-instance-join
- group-instance-manage
- group-instance-moderate
- group-instance-open-create
- group-instance-plus-create
- group-instance-plus-portal
- group-instance-plus-portal-unlocked
- group-instance-public-create
- group-instance-queue-priority
- group-instance-restricted-create
- group-invites-manage
- group-members-manage
- group-members-remove
- group-members-viewall
- group-roles-assign
- group-roles-manage
4 changes: 1 addition & 3 deletions openapi/components/schemas/GroupRole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ properties:
type: boolean
default: false
permissions:
type: array
items:
type: string
$ref: ./GroupPermissions.yaml
isManagementRole:
type: boolean
default: false
Expand Down

0 comments on commit 763e5b9

Please sign in to comment.