Skip to content

Commit cd2af53

Browse files
authored
Merge pull request #870 from code0-tech/848-expose-delete_user-ability-on-user
Expose delete_user ability on user
2 parents 371f81e + f9a5af8 commit cd2af53

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/graphql/types/user_type.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class UserType < Types::BaseObject
5252
expose_abilities %i[
5353
manage_mfa
5454
update_user
55+
delete_user
5556
]
5657

5758
id_field User

docs/graphql/object/useruserabilities.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Abilities for the current user on this User
88

99
| Name | Type | Description |
1010
|------|------|-------------|
11+
| `deleteUser` | [`Boolean!`](../scalar/boolean.md) | Shows if the current user has the `delete_user` ability on this User |
1112
| `manageMfa` | [`Boolean!`](../scalar/boolean.md) | Shows if the current user has the `manage_mfa` ability on this User |
1213
| `updateUser` | [`Boolean!`](../scalar/boolean.md) | Shows if the current user has the `update_user` ability on this User |
1314

0 commit comments

Comments
 (0)