Skip to content

Commit 16d8abe

Browse files
authored
Merge pull request #751 from code0-tech/fix-user-admin-field
Make user.admin nullable
2 parents 1a90dab + 2c55971 commit 16d8abe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/graphql/types/user_type.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class UserType < Types::BaseObject
99
field :avatar_path, String, null: true, description: 'The avatar if present of the user'
1010

1111
field :admin, Boolean,
12-
null: false,
12+
null: true,
1313
description: 'Global admin status of the user',
1414
authorize: :read_admin_status
1515
field :email, String, null: true, description: 'Email of the user', authorize: :read_email

docs/graphql/object/user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Represents a user
88

99
| Name | Type | Description |
1010
|------|------|-------------|
11-
| `admin` | [`Boolean!`](../scalar/boolean.md) | Global admin status of the user |
11+
| `admin` | [`Boolean`](../scalar/boolean.md) | Global admin status of the user |
1212
| `avatarPath` | [`String`](../scalar/string.md) | The avatar if present of the user |
1313
| `createdAt` | [`Time!`](../scalar/time.md) | Time when this User was created |
1414
| `email` | [`String`](../scalar/string.md) | Email of the user |

0 commit comments

Comments
 (0)