1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-15 11:04:17 +02:00

only list admins that are not system user

This commit is contained in:
Nick Sweeting
2024-10-21 00:38:36 -07:00
parent a97cc82979
commit 5023bdba2f

View File

@@ -160,4 +160,4 @@ def apply_migrations(out_dir: Path=DATA_DIR) -> List[str]:
@enforce_types
def get_admins(out_dir: Path=DATA_DIR) -> List[str]:
from django.contrib.auth.models import User
return User.objects.filter(is_superuser=True)
return User.objects.filter(is_superuser=True).exclude(username='system')