Humans are quite capable of digesting a diet rich in legumes just like all our other close relatives in the great ape kingdom. They subsist on a 85-99% plant based diet, primarily of fruits, nuts, and seeds. We have clearly adapted to eat more meat as our bodies changed to master running and throwing for hunting, but we are still a variant of great apes at the end of the day.