comparison sat_pubsub/backend.py @ 358:9e40fc16f4df

fixed bad inlineCallbacks in checkNodeAffiliations
author Goffi <goffi@goffi.org>
date Wed, 11 Oct 2017 19:14:29 +0200
parents 1167e48e5f52
children a98b3d52c2ff
comparison
equal deleted inserted replaced
357:1167e48e5f52 358:9e40fc16f4df
821 821
822 if not roster[requestor].groups.intersection(authorized_groups): 822 if not roster[requestor].groups.intersection(authorized_groups):
823 # requestor is in roster but not in one of the allowed groups 823 # requestor is in roster but not in one of the allowed groups
824 raise error.Forbidden() 824 raise error.Forbidden()
825 825
826 @defer.inlineCallbacks
827 def checkNodeAffiliations(self, node, requestor): 826 def checkNodeAffiliations(self, node, requestor):
828 """check if requestor is in white list of a node 827 """check if requestor is in white list of a node
829 828
830 @param node(Node): node to check 829 @param node(Node): node to check
831 @param requestor(jid.JID): entity who want to access node 830 @param requestor(jid.JID): entity who want to access node