@transmit-security/rbac
v1.0.0-beta
Published
RBAC impl of Transmt sec
Downloads
26
Readme
@transmit-security/rbac
RBAC impl of Transmt sec
Usage
import { Permission, Action, AppResourceDefinition } from '@transmit-security/rbac';
const userPermission = new Permission(Action.read, AppResourceDefinition);
if (userPermission.allows([Action.write, AppResourceDefinition.type])) {
// perform the operation
} else {
// return error
}