From 4737f765ab45fdd01d56a00dd2bed429d8026e2d Mon Sep 17 00:00:00 2001 From: Keegan Landrigan Date: Sun, 7 Mar 2021 02:17:23 +0000 Subject: [PATCH] temp revise User to allow django admin --- dispatch/modules/auth/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dispatch/modules/auth/models.py b/dispatch/modules/auth/models.py index 374e17655..aedce68bc 100644 --- a/dispatch/modules/auth/models.py +++ b/dispatch/modules/auth/models.py @@ -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)