Revision 1a3eff62 snf-pithos-app/pithos/api/functions.py

b/snf-pithos-app/pithos/api/functions.py
702 702
                    request.backend.get_object_permissions(
703 703
                        request.user_uniq, v_account, v_container, object)
704 704

  
705
            if public_granted:
705
            if request.user_uniq == v_account:
706
                # Bring public information only if the request user
707
                # is the object owner
706 708
                for k, v in request.backend.list_object_public(
707 709
                        request.user_uniq, v_account,
708 710
                        v_container, prefix).iteritems():
......
744 746
                update_sharing_meta(request, permissions, v_account,
745 747
                                    v_container, meta['name'], meta)
746 748
            public_url = object_public.get(meta['name'], None)
747
            if public_granted:
749
            if request.user_uniq == v_account:
750
                # Return public information only if the request user
751
                # is the object owner
748 752
                update_public_meta(public_url, meta)
749 753
            object_meta.append(printable_header_dict(meta))
750 754

  

Also available in: Unified diff