An economic adviser to Sen. Barbara Boxer has resigned after being arrested Tuesday for attempting to bring marijuana into the Hart Senate Office Building.

Capitol Police stopped Marcus M. Stanley Tuesday morning when he allegedly tried to “remove and conceal” a leafy green substance from his pocket as he was going through security at the Hart Office Building, say U.S. Capitol Police. The police later id’d the leafy green as the sticky green.

Stanley, who has worked for Boxer since 2009 and earned a six-figure salary, quickly resigned.

“Marcus Stanley is no longer with this office. He submitted his resignation and Senator Boxer accepted it because his actions yesterday were wrong and unacceptable,” said Boxer spokesman Zachary Coile.

Or, as the snarks at Wonkette snarked: “He has since resigned his job and will move on to a life of sitting at home reading dumb pot jokes about himself in the comments on this Politico article.”

Indeed. Or he could read this this homegrown one: The resignation saves Stanley from having to dust off this classic caught-with-dope excuse: “But Senator, I was just holding it for a friend in another Senate office.”

And for those of you wondering, Boxer opposes Proposition 19 in California, which would legalize and tax cannabis in the Golden State. So does her GOP rival Carly Fiorina.

Also, to repeat a poll of the day: CNN has the Senate race between Boxer and GOPer Carly Fiorina at 48-44 percent Boxer, a statistical dead heat given the margin of error.