export function getPermissionsForRole()

in package/src/rbac.ts [176:184]


export function getPermissionsForRole(roleId: string): Permission | IdentityResponse {
    if (roleExists(roleId)) {
        let role = roles.get(roleId);
        if (role?.permissions !== undefined) {
            return role.permissions;
        }
    }
    return { message: "No permissions found in role." };
}