WEST HOLLYWOOD, Calif. (KTLA) -- A gay corrections officer will be allowed to march in uniform in Sunday's gay and lesbian pride parade.

The announcement from the State Board of Corrections comes just hours after Officer Andrew Johnson announced he was filing a discrimination lawsuit against the State of California after the department denied him the right to march in uniform.

Johnson, 28, works as a corrections officer at the California Institution for Women in Chino.

He says he submitted a written request but the department refused, saying -- in writing -- that doing so would bring "discredit" to his employer.

Johnson is a member of the Gay Peace Officers Organization.

In reversing its decision, the department said in a statement that the, "CDCR did not intend to offend any segment of the population with its recent refusal to allow a correctional officer from participating in a Gay Pride Parade while wearing the department’s official uniform."

According to the statement, "The decision was made solely on an interpretation of an admittedly ambiguous section of the Department Operation Manual (DOM) as it relates to unauthorized use of the CDCR uniform."

No word on whether Johnson plans to drop his lawsuit.