diff options
| author | 2019-01-28 23:29:52 +0000 | |
|---|---|---|
| committer | 2019-01-28 23:29:52 +0000 | |
| commit | d10a6d94c13724f5c9ed476da63f0839ebaf2ad9 (patch) | |
| tree | d738a3564857654eb9214a012265f1a8055060ea /modules/check_mode.py | |
| parent | Use `target` (after prefixes lstrip) to get channel object (line_handler.py) (diff) | |
Add a way to force success and force failure of a command permission check
(commands.py)
Diffstat (limited to 'modules/check_mode.py')
| -rw-r--r-- | modules/check_mode.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/check_mode.py b/modules/check_mode.py index 4986752d..a33686d7 100644 --- a/modules/check_mode.py +++ b/modules/check_mode.py @@ -21,3 +21,5 @@ class Module(ModuleManager.BaseModule): if not event["target"].mode_or_above(event["user"], require_mode): return "You do not have permission to do this" + else: + return utils.consts.PERMISSION_FORCE_SUCCESS |
