Invert

Meta Condition

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

Type ID: apoli:invert

Note

Only available as a Bi-entity Condition

Fields

Field Type Default Description
bientity_condition Bi-entity Action The bi-entity condition to check which will have its 'target' and 'actor' contexts swapped.

Example

"bientity_condition": {
    "type": "apoli:inverted",
    "bientity_condition": {
        "type": "apoli:can_see"
    }
}

This will check if the target of the action can see the actor, as the roles are swapped.