diff sat_pubsub/backend.py @ 256:ea44c0986f47

Fixed getItems for roster access items when the subscriber is not owner of the node.
author Goffi <goffi@goffi.org>
date Wed, 17 Apr 2013 22:28:41 +0200
parents d55620ceafed
children 30988781f30d
line wrap: on
line diff
--- a/sat_pubsub/backend.py	Mon Apr 08 23:08:45 2013 +0200
+++ b/sat_pubsub/backend.py	Wed Apr 17 22:28:41 2013 +0200
@@ -504,7 +504,7 @@
             if not authorized:
                 raise error.NotAuthorized()
 
-            roster_item = roster.get(requestor.userhost())
+            roster_item = roster.get(requestor.userhostJID())
             authorized_groups = tuple(roster_item.groups) if roster_item else tuple()
 
             if itemIdentifiers: