# HG changeset patch
# User Goffi <goffi@goffi.org>
# Date 1366230521 -7200
# Node ID ea44c0986f47979e9920b8f84a69a706074b9d85
# Parent  d55620ceafed95d3e3bb6a5dc893152fe57b6c5c
Fixed getItems for roster access items when the subscriber is not owner of the node.

diff -r d55620ceafed -r ea44c0986f47 sat_pubsub/backend.py
--- 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: