Method

FoundryAcpPermissionPolicydecide

unstable since: 1.2

Declaration [src]

FoundryAcpPermissionResponse*
foundry_acp_permission_policy_decide (
  FoundryAcpPermissionPolicy* self,
  FoundryAcpPermissionRequest* request
)

Description [src]

Applies the headless policy to request.

The policy only auto-selects a non-destructive allow option when the request is low risk and any provided path remains inside the configured project directory. Requests outside the project, high-risk requests, unknown-risk requests, or destructive defaults are cancelled unless an explicit UI layer replaces this decision.

Available since: 1.2

Parameters

request

Type: FoundryAcpPermissionRequest

A FoundryAcpPermissionRequest.

The data is owned by the caller of the method.

Return value

The caller of the method takes ownership of the returned data, and is responsible for freeing it.