During turnaround the crew reported that the right main gear warning light does not come on when moving the landing gear control lever and thats a no go item due to no auxiliary down lock indicator light at the aft overhead panel. During troubleshooting found that the lock and position sensor for the right gear defective and need replacement, but no spare available at the time, so in order not to ground the aircraft and fly back to base we swapped the right gear sensor with the fwd cargo door sensor, they where the same p/n 1-899-29 and MEL the fwd cargo door warning light system (mel 52-3).
Thanks to Mohammed Mustafa.