Drain the beans on a sieve. Peel onions and cut into rings. Heat oil in a pot. Fry the onions in it. Add beans, tomatoes, bay leaves and oregano and bring to the boil.
Season to taste with salt and cayenne pepper. Place in a bowl and garnish with the bay leaves.