Comment 0 for bug 1379358

Revision history for this message
Timur Sufiev (tsufiev-x) wrote : Attribute `policy_rules` of a Panel instance is not considered while determining the Panel visibility

The Panel class is a subclass of HorizonComponent class, which should check `self.policy_rules` while determining whether the entity is visible or not. It isn't the case for Identity -> Users panel https://github.com/openstack/horizon/blob/2014.2.rc1/openstack_dashboard/dashboards/identity/users/panel.py#L29 You can check it yourself by changing both rules in https://github.com/openstack/horizon/blob/2014.2.rc1/openstack_dashboard/conf/keystone_policy.json#L43 to "!" and see that the panel is still visible.