mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Fixes #6105: Hide checkboxes for VMs under cluster VMs view
This commit is contained in:
parent
59e185b781
commit
38b09dc610
@ -6,6 +6,7 @@
|
||||
|
||||
* [#6100](https://github.com/netbox-community/netbox/issues/6100) - Fix VM interfaces table "add interfaces" link
|
||||
* [#6104](https://github.com/netbox-community/netbox/issues/6104) - Fix location column on racks table
|
||||
* [#6105](https://github.com/netbox-community/netbox/issues/6105) - Hide checkboxes for VMs under cluster VMs view
|
||||
|
||||
---
|
||||
|
||||
|
@ -163,8 +163,6 @@ class ClusterVirtualMachinesView(generic.ObjectView):
|
||||
def get_extra_context(self, request, instance):
|
||||
virtualmachines = VirtualMachine.objects.restrict(request.user, 'view').filter(cluster=instance)
|
||||
virtualmachines_table = tables.VirtualMachineTable(virtualmachines, orderable=False)
|
||||
if request.user.has_perm('virtualization.change_cluster'):
|
||||
virtualmachines_table.columns.show('pk')
|
||||
|
||||
return {
|
||||
'virtualmachines_table': virtualmachines_table,
|
||||
|
Loading…
Reference in New Issue
Block a user