Skip to main content

Invert (Bi-Entity Condition Type)

Checks a bi-entity condition with the actor and the target swapped.

Type ID: apoli:invert

Fields

FieldTypeDefaultDescription
conditionBi-entity Condition TyperequiredThe bi-entity condition to check with the actor and target swapped.

Examples

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

This checks whether the target can see the actor, since the roles are swapped.