authorize

abstract suspend fun authorize(operation: DataRightsOperation, userId: String): Boolean

Authorize a data rights operation.

Return

true to allow the operation, false to block it.

Parameters

operation

The type of operation being requested.

userId

The user ID the operation targets (empty for WIPE).