From ca3646341ad7965e9e17d0a58268ec4fcbe85427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Mon, 23 Oct 2023 10:11:32 -0300 Subject: [PATCH] =?UTF-8?q?Usu=C3=A1rios=20que=20n=C3=A3o=20est=C3=A3o=20n?= =?UTF-8?q?o=20ILB=20ficam=20como=20inativos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/servidores/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sigi/apps/servidores/utils.py b/sigi/apps/servidores/utils.py index 325c758..19de76a 100644 --- a/sigi/apps/servidores/utils.py +++ b/sigi/apps/servidores/utils.py @@ -147,6 +147,7 @@ def user_staff_and_group(user, ldap_attrs): group_names.extend(titles) group_names.extend([dep, title.upper()]) user.is_staff = "ILB" in dep + user.is_active = user.is_staff user.save() user.groups.clear() if user.is_staff: