care.security.management.commands.sync_permissions_roles module

class Command(stdout=None, stderr=None, no_color=False, force_color=False)

Bases: BaseCommand

This command syncs roles, permissions and role-permission mapping to the database. This command should be run after all deployments and plug changes. This command is idempotent, multiple instances running the same command is automatically blocked with redis.

help = 'Syncs permissions and roles to database'
handle(*args, **options)