ACL class

Hierarchy

  • ACL

Constructors

Properties

admin?: boolean
denyRead: ACLAllowDeny
denyWrite: ACLAllowDeny
from: string[]
id: string
meta?: any
ops: string[]

Methods

  • Is an operation allowed

    Parameters

    • op: string

      operation to check

    Returns boolean

  • Constructs allow/deny OID lists (strings), useful for item.state core call

    Returns [string[], string[]]

  • Is an item readable

    Parameters

    • oid: OID

      item to check

    Returns boolean

  • Is an item writable

    Parameters

    • oid: OID

      item to check

    Returns boolean

  • Is a pvt path readable

    Parameters

    • path: string

      pvt path to check

    Returns boolean

  • Is a pvt path writable

    Parameters

    • path: string

      pvt path to check

    Returns boolean

  • Require admin

    Returns void

    Throws

  • Require an item to be readable

    Parameters

    • oid: OID

      item to check

    Returns void

    Throws

  • Require an item to be writable

    Parameters

    • oid: OID

      item to check

    Returns void

    Throws

  • Require an operation

    Parameters

    • op: string

      operation to check

    Returns void

    Throws

  • Require a pvt path to be readable

    Parameters

    • path: string

      pvt path to check

    Returns void

    Throws

  • Require a pvt path to be writable

    Parameters

    • path: string

      pvt path to check

    Returns void

    Throws

Generated using TypeDoc