mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixed bug where checkboxes were being shown on tables regardless of user permissions
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user