Skip to content

Commit 03899d2

Browse files
committed
Fixes #2892
1 parent 802e740 commit 03899d2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
This project mostly adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html);
77
however, insignificant breaking changes do not guarantee a major version bump, see the reasoning [here](https://github.com/kyb3r/modmail/issues/319). If you're a plugin developer, note the "BREAKING" section.
88

9+
# v3.7.9
10+
11+
### Fixed
12+
13+
- `perms add/remove` should now work again
14+
915
# v3.7.8
1016

1117
### Added

bot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,9 +988,11 @@ async def update_perms(
988988
) -> None:
989989
value = str(value)
990990
if isinstance(name, PermissionLevel):
991+
level = True
991992
permissions = self.config["level_permissions"]
992993
name = name.name
993994
else:
995+
level = False
994996
permissions = self.config["command_permissions"]
995997
if name not in permissions:
996998
if add:
@@ -1003,7 +1005,7 @@ async def update_perms(
10031005
if value in permissions[name]:
10041006
permissions[name].remove(value)
10051007

1006-
if isinstance(name, PermissionLevel):
1008+
if level:
10071009
self.config["level_permissions"] = permissions
10081010
else:
10091011
self.config["command_permissions"] = permissions

0 commit comments

Comments
 (0)