aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-09 00:53:59 +0000
committerGravatar jesopo2020-02-09 00:53:59 +0000
commit732a0b77eb1212e308aa45155fb12db92ef6b3dc (patch)
tree1fabcbc39f24d9bb767d9e4a7db6145e4233cba6 /src/core_modules
parent_all_factoids() takes an array of targets (diff)
signature
should be checking for "*" in user_access
Diffstat (limited to 'src/core_modules')
-rw-r--r--src/core_modules/channel_access.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core_modules/channel_access.py b/src/core_modules/channel_access.py
index 977ecdbd..662599e0 100644
--- a/src/core_modules/channel_access.py
+++ b/src/core_modules/channel_access.py
@@ -19,13 +19,12 @@ class Module(ModuleManager.BaseModule):
else:
required_access.append(name)
- print(required_access)
user_access = target.get_user_setting(user.get_id(), "access", [])
identified = self.exports.get_one("is-identified")(user)
matched = list(set(required_access)&set(user_access))
- return ("*" in required_access or matched) and identified
+ return ("*" in user_access or matched) and identified
def _command_check(self, event, channel, require_access):
if channel: