Skip to content

Commit acf6aa9

Browse files
committed
merge from master into dev
2 parents 72f8962 + a26cd4e commit acf6aa9

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ however, insignificant breaking changes does not guarantee a major version bump,
4848
- Alias parser is rewritten without shlex.
4949
- New checks with thread create / find.
5050

51+
# v3.3.2
52+
53+
### Fixed
54+
55+
- An oversight with the permission system.
56+
5157
# v3.3.1
5258

5359
### Emergency Patch

core/checks.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ async def check_permissions(ctx, command_name) -> bool:
5050
if (
5151
permission_level is not PermissionLevel.OWNER
5252
and ctx.channel.permissions_for(ctx.author).administrator
53+
and ctx.guild == ctx.bot.modmail_guild
5354
):
54-
# Administrators have permission to all non-owner commands
55+
# Administrators have permission to all non-owner commands in the Modmail Guild
5556
logger.debug("Allowed due to administrator.")
5657
return True
5758

plugins/registry.json

+19-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
"icon_url": "https://i.imgur.com/67bEi82.png",
2727
"thumbnail_url": "https://i.imgur.com/67bEi82.png"
2828
},
29+
"anti-steal-close": {
30+
"repository": "officialpiyush/modmail-plugins",
31+
"branch": "master",
32+
"description": "Don't let anyone steal ya close.",
33+
"title": "Anti Steal Close",
34+
"icon_url": "https://i.imgur.com/LovxyV3.png",
35+
"thumbnail_url": "https://i.imgur.com/LovxyV3.png"
36+
},
2937
"embedder": {
3038
"repository": "papiersnipper/modmail-plugins",
3139
"branch": "master",
@@ -80,6 +88,15 @@
8088
"icon_url": "https://images.ionadev.ml/b/ZIDUUsl.png",
8189
"thumbnail_url": "https://images.ionadev.ml/b/ZIDUUsl.png"
8290
},
91+
"giveaway": {
92+
"repository": "officialpiyush/modmail-plugins",
93+
"branch": "master",
94+
"description": "Host giveaways on your server",
95+
"bot_version": "2.20.1",
96+
"title": "\uD83C\uDF89 Giveaway Plugin \uD83C\uDF89",
97+
"icon_url": "https://i.imgur.com/qk85xdi.png",
98+
"thumbnail_url": "https://i.imgur.com/gUHB91v.png"
99+
},
83100
"hastebin": {
84101
"repository": "officialpiyush/modmail-plugins",
85102
"branch": "master",
@@ -177,6 +194,6 @@
177194
"bot_version": "2.20.1",
178195
"title": "Server Stats",
179196
"icon_url": "https://i.gyazo.com/fadb70740e83f2448b23ffe192a1f32d.png",
180-
"thumbnail_url": "https://i.gyazo.com/fadb70740e83f2448b23ffe192a1f32d.png"
181-
}
197+
"thumbnail_url": "https://i.gyazo.com/fadb70740e83f2448b23ffe192a1f32d.png"
198+
}
182199
}

0 commit comments

Comments
 (0)