Skip to content

Commit

Permalink
rm is_multisite_editor from Role model
Browse files Browse the repository at this point in the history
  • Loading branch information
MyPyDavid committed Jan 17, 2023
1 parent f42f616 commit 6fff6f6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions rdmo/accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ class Meta:
def __str__(self):
return self.user.username

@property
def is_multisite_editor(self) -> bool:
if self.user.is_superuser:
return True
return self.editor.count() == Site.objects.count()


@receiver(post_save, sender=settings.AUTH_USER_MODEL)
Expand Down

0 comments on commit 6fff6f6

Please sign in to comment.