Add highlight for non-active users in grid

This commit is contained in:
Lance Edgar 2022-02-10 10:55:41 -06:00
parent f1c2fd399e
commit 065ad9e422

View file

@ -135,6 +135,10 @@ class UserView(PrincipalMasterView):
g.set_link('last_name')
g.set_link('display_name')
def grid_extra_class(self, user, i):
if not user.active:
return 'warning'
def editable_instance(self, user):
"""
If the given user is "protected" then we only allow edit if current