Skip to content
Snippets Groups Projects
Commit e3a86e9c authored by baldwinlouie's avatar baldwinlouie Committed by Yas Naoi
Browse files

Issue #3293219 by baldwinlouie, yas: Remove "Refresh" button when the user has...

Issue #3293219 by baldwinlouie, yas: Remove "Refresh" button when the user has no permissions to access any cloud service providers (VMware)
parent 53f1b0f1
Branches
Tags
3 merge requests!1759Issue #3356778: Release 5.1.1,!1679Issue #3349074: Fix the OpenStack Project create and edit form in SPA that "Member" cannot be saved due to a validation error,!1607Issue #3343582: Add the function to preview OpenStack stack in the SPA
...@@ -24,7 +24,9 @@ entity.vmware_vm.list_update.all: ...@@ -24,7 +24,9 @@ entity.vmware_vm.list_update.all:
defaults: defaults:
_controller: '\Drupal\vmware\Controller\ApiController::updateAllVmList' _controller: '\Drupal\vmware\Controller\ApiController::updateAllVmList'
requirements: requirements:
_permission: 'view any vmware vm+view own vmware vm+view all cloud service providers' _custom_access: '\Drupal\cloud\Controller\CloudConfigController::checkAccessForUpdateAll'
options:
entity_type: 'vmware_vm'
entity.vmware_vm.start_form: entity.vmware_vm.start_form:
path: '/clouds/vmware/{cloud_context}/vm/{vmware_vm}/start' path: '/clouds/vmware/{cloud_context}/vm/{vmware_vm}/start'
...@@ -122,7 +124,11 @@ entity.vmware_host.list_update.all: ...@@ -122,7 +124,11 @@ entity.vmware_host.list_update.all:
defaults: defaults:
_controller: '\Drupal\vmware\Controller\ApiController::updateAllHostList' _controller: '\Drupal\vmware\Controller\ApiController::updateAllHostList'
requirements: requirements:
_permission: 'view any vmware host+view own vmware host+view all cloud service providers' _custom_access: '\Drupal\cloud\Controller\CloudConfigController::checkAccessForUpdateAll'
options:
bypass_any_own_check: true
entity_type: 'vmware_host'
perm: 'view any vmware host'
entity.vmware_entity.count: entity.vmware_entity.count:
path: '/cloud_dashboard/vmware/{cloud_context}/{entity_type_id}/count' path: '/cloud_dashboard/vmware/{cloud_context}/{entity_type_id}/count'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment