HL.PermissionSpec

class HL.PermissionSpec

Table form accepted by hl.permission().

Shape

{
    binary = string, -- or target = string
    type = string,
    mode = string,
}

Fields

binarystring

Binary name. Must not be empty.

targetstring, optional

Alias for binary in table form.

typestring

One of screencopy, cursorpos, plugin, keyboard, or keeb.

modestring

One of ask, allow, or deny.

Used by

hl.permission()

Register a dynamic permission rule.