Owner should also be able to buy items from the xp shop

This commit is contained in:
Kwoth
2022-08-01 21:14:28 +02:00
parent bca2bc5af1
commit b683026cf3

View File

@@ -1351,7 +1351,7 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
if (!conf.Shop.IsEnabled) if (!conf.Shop.IsEnabled)
return BuyResult.UnknownItem; return BuyResult.UnknownItem;
if (conf.Shop.TierRequirement != PatronTier.None) if (conf.Shop.TierRequirement != PatronTier.None && !_creds.IsOwner(userId))
{ {
var patron = await _ps.GetPatronAsync(userId); var patron = await _ps.GetPatronAsync(userId);