diff --git a/openstack_dashboard/dashboards/admin/flavors/tables.py b/openstack_dashboard/dashboards/admin/flavors/tables.py index f4e8423d4c..67c0510c96 100644 --- a/openstack_dashboard/dashboards/admin/flavors/tables.py +++ b/openstack_dashboard/dashboards/admin/flavors/tables.py @@ -29,6 +29,8 @@ from openstack_dashboard import api class DeleteFlavor(tables.DeleteAction): + policy_rules = (("compute", "os_compute_api:os-flavor-manage:delete"),) + @staticmethod def action_present(count): return ungettext_lazy( @@ -54,6 +56,7 @@ class CreateFlavor(tables.LinkAction): verbose_name = _("Create Flavor") url = "horizon:admin:flavors:create" classes = ("ajax-modal",) + policy_rules = (("compute", "os_compute_api:os-flavor-manage:create"),) icon = "plus" @@ -88,6 +91,7 @@ class ModifyAccess(tables.LinkAction): verbose_name = _("Modify Access") url = "horizon:admin:flavors:update" classes = ("ajax-modal",) + policy_rules = (("compute", "os_compute_api:os-flavor-manage:update"),) icon = "pencil" def get_link_url(self, flavor): diff --git a/releasenotes/notes/policy-rules-flavors-94f50aa168d8563b.yaml b/releasenotes/notes/policy-rules-flavors-94f50aa168d8563b.yaml new file mode 100644 index 0000000000..033850adf0 --- /dev/null +++ b/releasenotes/notes/policy-rules-flavors-94f50aa168d8563b.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + The missing nova's os-flavors policy rules are added to the dashboard.