Skip to content

Commit

Permalink
temp revise User to allow django admin
Browse files Browse the repository at this point in the history
  • Loading branch information
keeganland committed Mar 7, 2021
1 parent ffb1e26 commit 4737f76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dispatch/modules/auth/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ def modify_permissions(self, permissions):
else:
self.groups.remove(group)

@property
def is_staff(self):
#TODO: REPLACE WITH SOMETHING LESS DANGEROUS???
return True
# permissions = self.get_permissions
# if permissions == 'admin':
# return True
# return False

class Invite(Model):
id = UUIDField(default=uuid.uuid4, primary_key=True)
email = CharField(max_length=255, unique=True)
Expand Down

0 comments on commit 4737f76

Please sign in to comment.