1
0
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:
Jeremy Stretch
2016-06-24 15:41:14 -04:00
parent a575a73a4f
commit 5bffa4893b

View File

@ -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):