diff --git a/app/graphql/types/user_type.rb b/app/graphql/types/user_type.rb index 6b8571a6..4e2f427e 100644 --- a/app/graphql/types/user_type.rb +++ b/app/graphql/types/user_type.rb @@ -52,6 +52,7 @@ class UserType < Types::BaseObject expose_abilities %i[ manage_mfa update_user + delete_user ] id_field User diff --git a/docs/graphql/object/useruserabilities.md b/docs/graphql/object/useruserabilities.md index 48987174..70215cf8 100644 --- a/docs/graphql/object/useruserabilities.md +++ b/docs/graphql/object/useruserabilities.md @@ -8,6 +8,7 @@ Abilities for the current user on this User | Name | Type | Description | |------|------|-------------| +| `deleteUser` | [`Boolean!`](../scalar/boolean.md) | Shows if the current user has the `delete_user` ability on this User | | `manageMfa` | [`Boolean!`](../scalar/boolean.md) | Shows if the current user has the `manage_mfa` ability on this User | | `updateUser` | [`Boolean!`](../scalar/boolean.md) | Shows if the current user has the `update_user` ability on this User |