From e07306294208e9af04d7c26ed1d5e12057cd41b3 Mon Sep 17 00:00:00 2001 From: PierreC Date: Tue, 3 Oct 2023 12:48:34 +0200 Subject: [PATCH] Update models.py --- pod/authentication/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pod/authentication/models.py b/pod/authentication/models.py index 028899ab4a..94c5831b73 100644 --- a/pod/authentication/models.py +++ b/pod/authentication/models.py @@ -132,7 +132,8 @@ def save(self, *args, **kwargs): ).hexdigest() if self.affiliation in AFFILIATION_STAFF : self.user.is_staff = True - else self.user.is_staff = False + else : + self.user.is_staff = False super(Owner, self).save(*args, **kwargs) def is_manager(self):