Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CartierPierre authored Oct 3, 2023
1 parent e86f86e commit e073062
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pod/authentication/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e073062

Please sign in to comment.