During flowering, you need to make sure there are NO light leaks. In a cabinet, there's always the potential for light leaks, since they aren't built to be light-proof.