Documentation
    Preparing search index...

    Page Class

    Implements

    Index

    Constructors

    Properties

    attributes?: any
    description: string
    fixed_states: any
    id?: number
    layout: Layout
    min_role: number
    name: string
    title: string
    updated_at?: Date

    Accessors

    Methods

    • Checks plugin authorize_page hooks. Combine with the caller's own role/min_role check, e.g. role <= page.min_role || (await page.authorize(...)).

      Parameters

      • user: any

        the acting user (or undefined/public)

      • opts: { action: "get" | "post"; body?: Row; req: any; state?: Row }
        • action: "get" | "post"

          "get" or "post"

        • Optionalbody?: Row

          POST body, for action "post"

        • req: any

          the request object, forwarded to hooks

        • Optionalstate?: Row

          query/state, for action "get"

      Returns Promise<boolean>