Skip to content
Snippets Groups Projects
Commit 54b52c3c 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 4517b40f
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,9 @@ entity.vmware_vm.list_update.all:
defaults:
_controller: '\Drupal\vmware\Controller\ApiController::updateAllVmList'
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:
path: '/clouds/vmware/{cloud_context}/vm/{vmware_vm}/start'
......@@ -122,7 +124,11 @@ entity.vmware_host.list_update.all:
defaults:
_controller: '\Drupal\vmware\Controller\ApiController::updateAllHostList'
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:
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.
Finish editing this message first!
Please register or to comment