From af370febcaf7a2f4a4b05180def398406446e0d7 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 2 Nov 2024 08:52:14 -0400 Subject: [PATCH] Flesh out graph structure some more --- src/Tgstation.Server.Host/GraphQL/Types/Instance.cs | 7 +++++++ .../GraphQL/Types/InstancePermissionSet.cs | 11 ++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/GraphQL/Types/Instance.cs b/src/Tgstation.Server.Host/GraphQL/Types/Instance.cs index 192a5b377b..26223a455e 100644 --- a/src/Tgstation.Server.Host/GraphQL/Types/Instance.cs +++ b/src/Tgstation.Server.Host/GraphQL/Types/Instance.cs @@ -14,5 +14,12 @@ namespace Tgstation.Server.Host.GraphQL.Types /// Queryable s. public IQueryable QueryableInstancePermissionSets() => throw new NotImplementedException(); + + /// + /// Gets the callers effective on the . + /// + /// The callers effective if it exists or . + public InstancePermissionSet? EffectivePermissionSet() + => throw new NotImplementedException(); } } diff --git a/src/Tgstation.Server.Host/GraphQL/Types/InstancePermissionSet.cs b/src/Tgstation.Server.Host/GraphQL/Types/InstancePermissionSet.cs index 76bcabcac6..ebe30ac072 100644 --- a/src/Tgstation.Server.Host/GraphQL/Types/InstancePermissionSet.cs +++ b/src/Tgstation.Server.Host/GraphQL/Types/InstancePermissionSet.cs @@ -1,4 +1,6 @@ -using Tgstation.Server.Api.Rights; +using System; + +using Tgstation.Server.Api.Rights; namespace Tgstation.Server.Host.GraphQL.Types { @@ -7,6 +9,13 @@ namespace Tgstation.Server.Host.GraphQL.Types /// public sealed class InstancePermissionSet { + /// + /// Gets the the belongs to. + /// + /// The owning . + public PermissionSet PermissionSet() + => throw new NotImplementedException(); + /// /// The of the . ///