jmap-kit
    Preparing search index...

    Variable preventSetOnReadOnlyAccountPluginConst

    preventSetOnReadOnlyAccountPlugin: ValidationPlugin<
        "invocation",
        BaseSetRequestInvocationArgs<BaseObject>,
    > = ...

    Prevents /set method calls on read-only accounts.

    Read-Only Account Protection (RFC 8620 Section 1.6.2, Section 5.3):

    • Validates that the target account's isReadOnly property is false
    • Read-only accounts cannot accept any data modification operations
    • All /set methods (create, update, destroy) require write access
    • Attempting modifications on read-only accounts would fail with an accountReadOnly error

    This validator catches the error client-side before making a server request, providing immediate feedback when attempting invalid operations on read-only accounts.

    Common read-only scenarios:

    • Shared resources with read-only permissions
    • Archive or backup accounts
    • Accounts in maintenance mode
    • Delegated access with restricted permissions