We don't have an event object in _has_channel_access
(channel_access.py)
This commit is contained in:
parent
e0722dfc8a
commit
249734ebef
1 changed files with 2 additions and 3 deletions
|
@ -4,9 +4,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
_name = "ChanAccess"
|
_name = "ChanAccess"
|
||||||
|
|
||||||
def _has_channel_access(self, target, user, require_access):
|
def _has_channel_access(self, target, user, require_access):
|
||||||
access = event["target"].get_user_setting(event["user"].get_id(),
|
access = target.get_user_setting(user.get_id(), "access", [])
|
||||||
"access", [])
|
identified_account = user.get_identified_account()
|
||||||
identified_account = event["user"].get_identified_account()
|
|
||||||
|
|
||||||
return ((require_access in access or "*" in access
|
return ((require_access in access or "*" in access
|
||||||
) and identified_account)
|
) and identified_account)
|
||||||
|
|
Loading…
Reference in a new issue