Editor of all Content in Spanish

This Access Policy grants the editor role over content in Spanish. It uses the locale condition with the locale es.

For example, if this policy is assigned to an Editors team that has no directly assigned roles, members of the team have editor rights against all content that is in Spanish. They will not have Editor rights over content in other languages or content that does not have a locale defined.

JSON

{
    "title": "Editor of all Content in Spanish",
    "statements": [{
        "action": "grant",
        "roles": ["editor"],
        "conditions": [{
            "conditions": [{
                "type": "locale",
                "config": {
                    "locale": "es"
                }
            }]
        }]
    }]
}