Skip to content

Commit 26d3e9e

Browse files
committed
Security patch, logs command now requires manage message perms
1 parent dcc2e97 commit 26d3e9e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# v2.0.2
8+
9+
### Security
10+
- Made the logs command require manage messages permissions to execute.
11+
- Before this patch, anyone could use the logs commands.
12+
13+
714
# v2.0.1
815

916
Bug fixes and minor improvements.

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
"""
2424

25-
__version__ = '2.0.1'
25+
__version__ = '2.0.2'
2626

2727
import asyncio
2828
import textwrap

cogs/modmail.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ async def nsfw(self, ctx):
171171
await ctx.message.add_reaction('✅')
172172

173173
@commands.command()
174+
@commands.has_permissions(manage_messages=True)
174175
@trigger_typing
175176
async def logs(self, ctx, *, member: Union[discord.Member, discord.User]=None):
176177
"""Shows a list of previous modmail thread logs of a member."""

0 commit comments

Comments
 (0)