Skip to content

Commit 3b56d07

Browse files
authored
Allow staff to view blacklisted users' data (#688)
1 parent b5e94c5 commit 3b56d07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ballsdex/packages/balls/cog.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ async def list(
168168
)
169169
return
170170
if user is not None:
171-
if user.id in self.bot.blacklist:
171+
if user.id in self.bot.blacklist and not is_staff(interaction):
172172
await interaction.followup.send(
173173
"You cannot view the inventory of a blacklisted user.", ephemeral=True
174174
)
@@ -265,7 +265,7 @@ async def completion(
265265
f"{extra_text}{settings.plural_collectible_name} yet."
266266
)
267267
return
268-
if user.id in self.bot.blacklist:
268+
if user.id in self.bot.blacklist and not is_staff(interaction):
269269
await interaction.followup.send(
270270
"You cannot view the completion of a blacklisted user.", ephemeral=True
271271
)
@@ -432,7 +432,7 @@ async def last(
432432
return
433433

434434
if user is not None:
435-
if user.id in self.bot.blacklist:
435+
if user.id in self.bot.blacklist and not is_staff(interaction):
436436
await interaction.followup.send(
437437
(
438438
"You cannot view the last caught "
@@ -819,7 +819,7 @@ async def compare(
819819
)
820820
return
821821

822-
if user.id in self.bot.blacklist:
822+
if user.id in self.bot.blacklist and not is_staff(interaction):
823823
await interaction.followup.send(
824824
"You cannot compare the inventory of a blacklisted user.", ephemeral=True
825825
)

0 commit comments

Comments
 (0)