fix: re-add privacy checks to SystemConfig

... oops
This commit is contained in:
spiral 2021-12-23 22:50:16 -05:00
parent ec027f0366
commit 816dfaafb6
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -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)