export function isInRole()

in package/src/rbac.ts [160:168]


export function isInRole(roleId: string, principalId: string): boolean {
    if (roles.has(roleId)) {
        let assignment = roleAssignments.get(principalId);
        if (assignment !== undefined) {
            return true;
        }
    }
    return false;
}