Invert (Bi-Entity Condition Type)

Swaps the context of the target entity and the actor entity.

Swaps the context of the target entity and the actor entity.

Type ID: apoli:invert

Fields

FieldTypeDefaultDescription
conditionBi-entity Condition TypeThe bi-entity condition type to check which will have its ‘target’ and ‘actor’ contexts swapped.

Examples

"bientity_condition": {
    "type": "apoli:invert",
    "condition": {
        "type": "apoli:can_see"
    }
}

This example will check if the target entity can see the actor entity, as the roles are now swapped.