From 249734ebef40660c3199bd4fe7604a720c7d4ab0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 29 Jan 2019 15:35:38 +0000 Subject: We don't have an event object in `_has_channel_access` (channel_access.py) --- modules/channel_access.py | 5 ++--- 1 file 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) -- cgit v1.3.1-10-gc9f91