Skip to content

Commit

Permalink
[Tournaments] Permission check for mod_or_streamer() (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyleff2049 committed May 23, 2021
1 parent 42f3f57 commit 06bcbf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tournaments/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
async def mod_or_streamer(ctx: commands.Context):
if ctx.author.id == ctx.guild.owner.id:
return True
if ctx.author.guild_permissions.administrator:
return True
is_mod = await ctx.bot.is_mod(ctx.author)
if is_mod is True:
return True
Expand Down
2 changes: 1 addition & 1 deletion tournaments/tournaments.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(self, bot: Red):
except Exception as e:
log.error("Couldn't load dev env values.", exc_info=e)

__version__ = "1.1.4"
__version__ = "1.1.5"
__author__ = ["retke (El Laggron)", "Wonderfall", "Xyleff"]

@commands.command(hidden=True)
Expand Down

0 comments on commit 06bcbf2

Please sign in to comment.