rebuildacls.py 356 B

123456789
  1. from django.core.management.base import BaseCommand
  2. from misago.monitor import Monitor
  3. class Command(BaseCommand):
  4. help = 'Rebuilds ACLs for all users'
  5. def handle(self, *args, **options):
  6. Monitor().increase('acl_version')
  7. self.stdout.write('\nUser ACLs cache has been set as outdated and will be rebuild when needed.\n')