Masaail relating to intimacy

Masturbating

Q: My wife is unable to reach sexual satisfaction by sexual intercourse or by me stimulating her. Is she allowed to masturbate in front of me while we are having intercourse, if I allow it, as this is the only way for her to be satisfied? I don't have a problem with it.