mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-06 23:26:19 +01:00
Bulk of the profile work is done.
This commit is contained in:
0
services/management/__init__.py
Normal file
0
services/management/__init__.py
Normal file
0
services/management/commands/__init__.py
Normal file
0
services/management/commands/__init__.py
Normal file
12
services/management/commands/verify_service_accounts.py
Normal file
12
services/management/commands/verify_service_accounts.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.contrib.auth.models import User
|
||||
from 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)
|
||||
self.stdout.write(self.style.SUCCESS('Verified all user service accounts.'))
|
||||
Reference in New Issue
Block a user