From d10a6d94c13724f5c9ed476da63f0839ebaf2ad9 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 28 Jan 2019 23:29:52 +0000 Subject: Add a way to force success and force failure of a command permission check (commands.py) --- modules/check_mode.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/check_mode.py') 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 -- cgit v1.3.1-10-gc9f91