diff --git a/PluralKit.API/Controllers/PKControllerBase.cs b/PluralKit.API/Controllers/PKControllerBase.cs index 0e97e0a9..d2540ab4 100644 --- a/PluralKit.API/Controllers/PKControllerBase.cs +++ b/PluralKit.API/Controllers/PKControllerBase.cs @@ -74,21 +74,21 @@ namespace PluralKit.API return Task.FromResult(null); } - public LookupContext ContextFor(PKSystem system) + protected LookupContext ContextFor(PKSystem system) { HttpContext.Items.TryGetValue("SystemId", out var systemId); if (systemId == null) return LookupContext.ByNonOwner; return ((SystemId)systemId) == system.Id ? LookupContext.ByOwner : LookupContext.ByNonOwner; } - public LookupContext ContextFor(PKMember member) + protected LookupContext ContextFor(PKMember member) { HttpContext.Items.TryGetValue("SystemId", out var systemId); if (systemId == null) return LookupContext.ByNonOwner; return ((SystemId)systemId) == member.System ? LookupContext.ByOwner : LookupContext.ByNonOwner; } - public LookupContext ContextFor(PKGroup group) + protected LookupContext ContextFor(PKGroup group) { HttpContext.Items.TryGetValue("SystemId", out var systemId); if (systemId == null) return LookupContext.ByNonOwner;