mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
fix: re-add privacy checks to SystemConfig
... oops
This commit is contained in:
parent
ec027f0366
commit
816dfaafb6
1 changed files with 4 additions and 0 deletions
|
|
@ -73,6 +73,8 @@ public class SystemEdit
|
||||||
|
|
||||||
public async Task Description(Context ctx, PKSystem target)
|
public async Task Description(Context ctx, PKSystem target)
|
||||||
{
|
{
|
||||||
|
ctx.CheckSystemPrivacy(target.Id, target.DescriptionPrivacy);
|
||||||
|
|
||||||
var isOwnSystem = target.Id == ctx.System?.Id;
|
var isOwnSystem = target.Id == ctx.System?.Id;
|
||||||
|
|
||||||
var noDescriptionSetMessage = "This system does not have a description set.";
|
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)
|
public async Task BannerImage(Context ctx, PKSystem target)
|
||||||
{
|
{
|
||||||
|
ctx.CheckSystemPrivacy(target.Id, target.DescriptionPrivacy);
|
||||||
|
|
||||||
var isOwnSystem = target.Id == ctx.System?.Id;
|
var isOwnSystem = target.Id == ctx.System?.Id;
|
||||||
|
|
||||||
if (!ctx.HasNext() && ctx.Message.Attachments.Length == 0)
|
if (!ctx.HasNext() && ctx.Message.Attachments.Length == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue