mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-23 19:19:53 +00:00
Merge pull request #122 from correl/acl_check_fix
XEP-0009: ACL.check fix
This commit is contained in:
commit
a67e16d1b7
1 changed files with 3 additions and 0 deletions
|
@ -113,6 +113,9 @@ class ACL:
|
|||
def check(cls, rules, jid, resource):
|
||||
if rules is None:
|
||||
return cls.DENY # No rules means no access!
|
||||
jid = str(jid) # Check the string representation of the JID.
|
||||
if not jid:
|
||||
return cls.DENY # Can't check an empty JID.
|
||||
for rule in rules:
|
||||
policy = cls._check(rule, jid, resource)
|
||||
if policy is not None:
|
||||
|
|
Loading…
Reference in a new issue