65
65
def traversed_to_object(self, obj):
66
66
"""Check that the user has any permission at all over the object."""
67
67
if (hasattr(obj, 'get_permissions') and
69
69
# Indicate the forbidden object if this is an admin.
70
70
if self.root.user and self.root.user.admin:
71
71
raise Unauthorized('Unauthorized: %s' % obj)