Skip to content

permissions#

UsersViewAccessPolicy#

Bases: BaseAccessPolicy

Source code in src/apps/users/permissions.py
class UsersViewAccessPolicy(BaseAccessPolicy):
    statements = [
        {
            "action": ["<safe_methods>", "delete_data"],
            "principal": "group:service",
            "effect": "allow",
        },
        {"action": "*", "principal": "admin", "effect": "allow"},
    ]