Using mosfet as diode (Making an UPS)
The reverse polarity circuit you're basing it on will protect against reverse voltage.  It doesn't care which way the current is flowing.

Your FET is always on because the gate is always positive with respect to the source.  You need to sense current separately and switch the FET depending on the direction of the current.