Place 2 tablespoons of oil in a large saucepan over medium heat. Add the onion, fresh chilli and capsicum and cook until softened. Add the chilli flakes, cinnamon, cumin and thyme and cook for a further minute.Reduce heat to low and add the garlic, beans, lentils, tomatoes, tomato paste and remaining oil.Cover and simmer for 15 minutes, stirring occasionally. Remove lid and cook for a further 5 minutes or until thickened.Stir through the parsley and serve.