Merge "Fix mismatched attach_volume rule"
This commit is contained in:
commit
3ca4a5deb8
@ -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
|
||||
|
@ -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 = \
|
||||
|
Loading…
x
Reference in New Issue
Block a user