diff --git a/openstack_dashboard/dashboards/project/instances/tables.py b/openstack_dashboard/dashboards/project/instances/tables.py index 2737933047..3f13d00512 100644 --- a/openstack_dashboard/dashboards/project/instances/tables.py +++ b/openstack_dashboard/dashboards/project/instances/tables.py @@ -892,7 +892,8 @@ class AttachVolume(tables.LinkAction): verbose_name = _("Attach Volume") url = "horizon:project:instances:attach_volume" classes = ("ajax-modal",) - policy_rules = (("compute", "os_compute_api:servers:attach_volume"),) + policy_rules = ( + ("compute", "os_compute_api:servers:create:attach_volume"),) # This action should be disabled if the instance # is not active, or the instance is being deleted diff --git a/openstack_dashboard/dashboards/project/volumes/tables.py b/openstack_dashboard/dashboards/project/volumes/tables.py index 8b33ef5190..a5800bd53f 100644 --- a/openstack_dashboard/dashboards/project/volumes/tables.py +++ b/openstack_dashboard/dashboards/project/volumes/tables.py @@ -188,7 +188,7 @@ class EditAttachments(tables.LinkAction): project_id = getattr(volume, "os-vol-tenant-attr:tenant_id", None) attach_allowed = \ policy.check((("compute", - "os_compute_api:servers:attach_volume"),), + "os_compute_api:servers:create:attach_volume"),), request, {"project_id": project_id}) detach_allowed = \