mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-12 01:56:25 +01:00
14 lines
469 B
Python
14 lines
469 B
Python
from django.contrib.auth.models import User
|
|
from django.core.management.base import BaseCommand
|
|
|
|
from allianceauth.services.tasks import validate_services
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = "Ensures all service accounts belong to users with required permissions."
|
|
|
|
def handle(self, *args, **options):
|
|
for u in User.objects.all():
|
|
validate_services(u.pk)
|
|
self.stdout.write(self.style.SUCCESS('Verified all user service accounts.'))
|