War of 1812
The War of 1812 was a conflict fought between the United States and its allies against the United Kingdom of Great Britain and Ireland and its own allies. It began when the United States declared war in June 1812 and ended in a stalemate when a peace treaty agreed earlier was ratified by the United States in February 1815. While the war ended in a draw, both sides were happy with the outcome that saw the war ending and indigenous nations are generally seen among historians as the real losers. Historians in Britain often see it as a minor theatre of the Napoleonic Wars while historians in Canada and the United States see it as a war in its own right. From the outbreak of war with Napoleonic France in 1803, Britain had enforced a naval blockade to choke off neutral trade to France which the United States contested as illegal under international law. To man the blockade, Britain pressed merchant sailors into the Royal Navy, including Americans. American sentiment grew increasingly hostile toward Britain due to incidents such as the "Chesapeake–Leopard" affair, five years before the war. The British were outraged by the 1811 "Little Belt" affair in which 11 British sailors died. Britain supplied arms to Native Americans who raided European-American settlers on the American frontier, hindering the expansion of the United States and provoking resentment. Although the debate on whether the desire to annex some or all of British North America (Canada) contributed to the American decision to go to war, the reasoning for invasion was mainly strategical. President James Madison signed into law the American declaration of war after heavy pressure from the War Hawks in the United States Congress. 
Hispanic Admirals in the United States Navy
Hispanic Admirals in the United States Navy can trace their tradition of naval military service to the Hispanic sailors, who have served in the Navy in every war and conflict since the American Revolution. Prior to the Civil War, the highest rank reached by a Hispanic-American in the Navy was commodore. Such was the case of Commodore Uriah Phillips Levy (1792–1862), a Sephardic Jew of Hispanic descent and great grandson of Dr. Samuel Nunez, who served in the War of 1812. During the American Civil War, the government of the United States recognized that the rapid expanding Navy was in need of admirals therefore, Congress proceeded to authorize the appointment of nine officers the rank of rear admiral. On July 16, 1862, Flag Officer David Glasgow Farragut became the first Hispanic-American to be appointed to the rank of rear admiral. Two years later (1864), Farragut became a vice admiral, and in 1866 the Navy's first full admiral. During World War I, Robert Lopez, the first Hispanic graduate of the United States Naval Academy, served with the rank of commodore in command of the Mare Island Naval Shipyard, and during World War II five Hispanics served with the ranks of rear admiral or above in either the European or Pacific Theater's of the war. As of April 2007, twenty-two Hispanic-Americans have reached the rank of admiral, and of this number thirteen were graduates of the USNA.

Question: Which war in United States history between the United States and the United Kingdom was the last war in which hispanic naval officers could reach a rank no higher than Commodore?
Answer: War of 1812