From 816dfaafb66d3324be2d9d803773155957d1434a Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 23 Dec 2021 22:50:16 -0500 Subject: [PATCH] fix: re-add privacy checks to SystemConfig ... oops --- PluralKit.Bot/Commands/SystemEdit.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PluralKit.Bot/Commands/SystemEdit.cs b/PluralKit.Bot/Commands/SystemEdit.cs index 0ea056c9..7b5a2754 100644 --- a/PluralKit.Bot/Commands/SystemEdit.cs +++ b/PluralKit.Bot/Commands/SystemEdit.cs @@ -73,6 +73,8 @@ public class SystemEdit public async Task Description(Context ctx, PKSystem target) { + ctx.CheckSystemPrivacy(target.Id, target.DescriptionPrivacy); + var isOwnSystem = target.Id == ctx.System?.Id; var noDescriptionSetMessage = "This system does not have a description set."; @@ -409,6 +411,8 @@ public class SystemEdit public async Task BannerImage(Context ctx, PKSystem target) { + ctx.CheckSystemPrivacy(target.Id, target.DescriptionPrivacy); + var isOwnSystem = target.Id == ctx.System?.Id; if (!ctx.HasNext() && ctx.Message.Attachments.Length == 0)