The law removed penalties only for relations between gay men over the age of 21 .
The law would receive royal assent on July 27 .
The law , which would receive royal assent on July 27 , removed penalties only for relations between gay men over the age of 21 .