Action Permission
ActionPermissions are the simplest (no criteria). Just denotes what times the action is executable or not.
"collectionPermissions": {
"canDeleteCollection": [...],
...
}
"userPermissions": {
...
"canUpdateAutoApproveSelfInitiatedOutgoingTransfers": [...],
"canUpdateAutoApproveSelfInitiatedIncomingTransfers": [...],
"canUpdateAutoApproveAllIncomingTransfers": [...],
}
export interface ActionPermission<T extends NumberType> {
permanentlyPermittedTimes: UintRange<T>[];
permanentlyForbiddenTimes: UintRange<T>[];
}
Examples
Below, this forbids the action from ever being executed.
"canDeleteCollection": [
{
"permanentlyPermittedTimes": [],
"permanentlyForbiddenTimes": [
{
"start": "1",
"end": "18446744073709551615"
}
],
}
]
Last updated