From f9a5af829f88e9bb804068a17ba2e161e18d06b9 Mon Sep 17 00:00:00 2001 From: Niklas van Schrick Date: Sat, 7 Mar 2026 21:34:40 +0100 Subject: [PATCH] Expose delete_user ability on user --- app/graphql/types/user_type.rb | 1 + docs/graphql/object/useruserabilities.md | 1 + 2 files changed, 2 insertions(+) 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 |