mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-11 09:36:24 +01:00
Restructure Alliance Auth package (#867)
* Refactor allianceauth into its own package * Add setup * Add missing default_app_config declarations * Fix timerboard namespacing * Remove obsolete future imports * Remove py2 mock support * Remove six * Add experimental 3.7 support and multiple Dj versions * Remove python_2_unicode_compatible * Add navhelper as local package * Update requirements
This commit is contained in:
0
allianceauth/services/management/__init__.py
Normal file
0
allianceauth/services/management/__init__.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
self.stdout.write(self.style.SUCCESS('Verified all user service accounts.'))
|
||||
Reference in New Issue
Block a user