From 0754ceb803b299436220262be9a42f8b7d47bb16 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Thu, 4 Jul 2019 22:11:51 +0000 Subject: [PATCH] fix: allowed banned/suspended users to view their ignored users (#2387) --- src/core/server/graph/tenant/schema/schema.graphql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/server/graph/tenant/schema/schema.graphql b/src/core/server/graph/tenant/schema/schema.graphql index 478a24e68..9e58008b9 100644 --- a/src/core/server/graph/tenant/schema/schema.graphql +++ b/src/core/server/graph/tenant/schema/schema.graphql @@ -1538,7 +1538,12 @@ type User { """ ignoredUsers will return the list of ignored users. """ - ignoredUsers: [User!]! @auth(roles: [ADMIN, MODERATOR], userIDField: "id") + ignoredUsers: [User!]! + @auth( + roles: [ADMIN, MODERATOR] + userIDField: "id" + permit: [SUSPENDED, BANNED] + ) """ createdAt is the time that the User was created at.