Permission

Introduced in 3.0.0

Stability: 2 - Stable

const Permission = require('kado/lib/Permission')

This library provides permission validation against sets that can be loaded at run time. URIs are used to test against.

When a permission set has no restrictions defined it will be allowed all permissions. Thus, its a common practice to always have a permission set defined when created a new permission user.

Class: Permission

static Permission.getInstance()

Permission.constructor()

Permission.add(name, description)

Permission.remove(name)

Permission.get(name)

Permission.exists(name)

Permission.allowed(name, set)

Permission.digest()

Permission.all()