hasPermissionParams: {
    docname: string;
    doctype: string;
    perm_type?: string;
}