casbin
Version:
An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS
14 lines (13 loc) • 442 B
TypeScript
export declare const enum EffectExpress {
ALLOW = "some(where (p_eft == allow))",
DENY = "!some(where (p_eft == deny))",
ALLOW_AND_DENY = "some(where (p_eft == allow)) && !some(where (p_eft == deny))",
PRIORITY = "priority(p_eft) || deny",
SUBJECT_PRIORITY = "subjectPriority(p_eft) || deny"
}
export declare const enum FieldIndex {
Domain = "dom",
Subject = "sub",
Object = "obj",
Priority = "priority"
}