Ramana advised against garlic for sadhakas, but not onions. He cooked several delicious recipes of items containing onions for his close disciples and did not prohibit it to anyone AFAIK. Regards, Kartik