diff options
| -rw-r--r-- | modules/channel_access.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/channel_access.py b/modules/channel_access.py index 0c5e07da..72c8cad5 100644 --- a/modules/channel_access.py +++ b/modules/channel_access.py @@ -4,9 +4,8 @@ class Module(ModuleManager.BaseModule): _name = "ChanAccess" def _has_channel_access(self, target, user, require_access): - access = event["target"].get_user_setting(event["user"].get_id(), - "access", []) - identified_account = event["user"].get_identified_account() + access = target.get_user_setting(user.get_id(), "access", []) + identified_account = user.get_identified_account() return ((require_access in access or "*" in access ) and identified_account) |
