aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/channel_access.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/channel_access.py b/modules/channel_access.py
index f7ba7aae..ce00da0c 100644
--- a/modules/channel_access.py
+++ b/modules/channel_access.py
@@ -11,10 +11,11 @@ class Module(ModuleManager.BaseModule):
"access", [])
identified_account = event["user"].get_identified_account()
- if not require_access in access or not identified_account:
- return "You do not have permission to do this"
- else:
+ if ((require_access in acess or "*" in access) and
+ identified_account):
return utils.consts.PERMISSION_FORCE_SUCCESS
+ else:
+ return "You do not have permission to do this"
@utils.hook("received.command.access", min_args=1, channel_only=True)
def access(self, event):