From c428d95479e45ac37c3a5b5330783b7a74ad277d Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 20 Jun 2020 16:10:22 +0200 Subject: [PATCH] Fix auth checking when looking up member avatar --- PluralKit.Bot/Commands/MemberAvatar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/MemberAvatar.cs b/PluralKit.Bot/Commands/MemberAvatar.cs index b2b8dbcc..ba8800fb 100644 --- a/PluralKit.Bot/Commands/MemberAvatar.cs +++ b/PluralKit.Bot/Commands/MemberAvatar.cs @@ -48,7 +48,7 @@ namespace PluralKit.Bot var currentValue = location == AvatarLocation.Member ? target.AvatarUrl : guildData?.AvatarUrl; var canAccess = location != AvatarLocation.Member || target.AvatarPrivacy.CanAccess(ctx.LookupContextFor(target)); - if (string.IsNullOrEmpty(currentValue) && !canAccess) + if (string.IsNullOrEmpty(currentValue) || !canAccess) { if (location == AvatarLocation.Member) {