mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
Fixed bug where checkboxes were being shown on tables regardless of user permissions
This commit is contained in:
parent
a575a73a4f
commit
5bffa4893b
@ -19,8 +19,11 @@ class BaseTable(tables.Table):
|
||||
|
||||
|
||||
class ToggleColumn(tables.CheckBoxColumn):
|
||||
default = ''
|
||||
visible = False
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
default = kwargs.pop('default', '')
|
||||
visible = kwargs.pop('visible', False)
|
||||
super(ToggleColumn, self).__init__(*args, default=default, visible=visible, **kwargs)
|
||||
|
||||
@property
|
||||
def header(self):
|
||||
|
Loading…
Reference in New Issue
Block a user