Support account-tag in permissions.py

This commit is contained in:
jesopo 2018-09-05 15:39:29 +01:00
parent 33286319bb
commit 83c0022c4d

View file

@ -135,7 +135,8 @@ class Module(object):
if identity_mechanism == "internal":
identified_account = event["user"].identified_account_override
elif identity_mechanism == "ircv3-account":
identified_account = event["user"].identified_account
identified_account = (event["user"].identified_account or
event["tags"].get("account", None))
identified_user = None
permissions = []