Fix "Edit Port Security Groups" tab on Horizon
"Edit Port Security Groups" button is visible to all
roles on Instances.
"policy_rules" is defined in "EditPortSecurityGroups"
class to fix it.
closes-bug:
@@ -530,6 +530,7 @@ class EditInstanceSecurityGroups(EditInstance):
class EditPortSecurityGroups(tables.LinkAction):
name = "edit_port_secgroups"
verbose_name = _("Edit Port Security Groups")
+ policy_rules = (("network", "update_security_group"),)
url = "horizon:project:instances:detail"
icon = "pencil"
