Node Has Feature

This section describes features that are coming in 3.3.

The node-has-feature condition allows you to constrain a policy statement so that it applies to content nodes that have a particular feature.

Configuration

{
    "type": "node-has-feature",
    "config": {
        "qname": "{qname}"
    }
}

Samples

This policy document grants the Consumer role to all content with feature f:thumbnailable:

{
    "title": "My Sample Policy",
    "statements": [{
        "action": "grant",
        "roles": ["consumer"],
        "conditions": [{
            "type": "node-has-feature",
            "config": {
                "qname": "f:thumbnailable"
            }
        }]
    }]
}