jmap-kit
    Preparing search index...

    Variable preventBlobCopyOnReadOnlyAccountPluginConst

    preventBlobCopyOnReadOnlyAccountPlugin: ValidationPlugin<
        "invocation",
        BlobCopyRequestInvocationArgs,
    > = ...

    Prevents Blob/copy operations on read-only target accounts.

    Read-Only Account Protection for Blob/copy:

    • Validates that the target account's (accountId) isReadOnly property is false
    • Blob/copy writes blobs to the target account, requiring write access
    • The source account (fromAccountId) only needs read access
    • Attempting to copy to a read-only account would fail with an accountReadOnly error

    This validator catches the error client-side before making a server request, providing immediate feedback when attempting to copy blobs to read-only accounts.

    Common read-only scenarios:

    • Shared accounts with read-only permissions
    • Archive or backup accounts
    • Accounts in maintenance mode