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)