diff options
| author | 2019-01-29 07:14:53 +0000 | |
|---|---|---|
| committer | 2019-01-29 07:14:53 +0000 | |
| commit | 08404c46945975b00eb83f0971be249a772273c8 (patch) | |
| tree | e17d9e4e29ed6bc06a9ba3c7178bf71797642f24 | |
| parent | Show an error when an unknown subcommand is given to !access (channel_access.py) (diff) | |
| signature | ||
Use new `utils.consts.PERMISSION_FORCE_SUCCESS` in `permissions.py`
| -rw-r--r-- | modules/permissions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/permissions.py b/modules/permissions.py index 873e346d..e24f6ea0 100644 --- a/modules/permissions.py +++ b/modules/permissions.py @@ -171,10 +171,14 @@ class Module(ModuleManager.BaseModule): permission in permissions or "*" in permissions) if not identified_account or not has_permission: return "You do not have permission to do that" + else: + return utils.consts.PERMISSION_FORCE_SUCCESS elif authenticated: if not identified_account: return REQUIRES_IDENTIFY % (event["server"].nickname, event["server"].nickname) + else: + return utils.consts.PERMISSION_FORCE_SUCCESS @utils.hook("received.command.mypermissions", authenticated=True) def my_permissions(self, event): |
