Horizon does not hide image "Visibility" field even with non-admin user

Bug #1715193 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
New
Undecided
Unassigned

Bug Description

Horizon has a "Visibility" field as public/private when uploading images.

According to the code, it looks like Horizon checks if the user has a privilege to publicize an image, then hide the form when it's non-privileged user (non-admin by default).

[openstack_dashboard/dashboards/project/images/images/forms.py]
        if not policy.check((("image", "publicize_image"),), request):
            self._hide_is_public()

However, it seems not working for me. I still see public/private button even with non-admin user and image upload fails by default because the default choice is public (bug 1699144).

I'm using Ocata right now and I didn't check the behavior in Pike, but forms.py has not been changed so much since Ocata.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.