Horizon does not hide image "Visibility" field even with non-admin user
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_
if not policy.
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.