Is it safe for foreigners to work in Mauritainia

Hi I'm thinking of working at a mine in Mauritainia and want to know if it is safe for foreigners there. All official travel advice says not to go.

in general there is no problem but the medias give often terrible image about Mauritania.It is safe but you should be cautious anyway.

I worked in Tasiast gold mine. Everything is under control and no need to worry. But to reach this place you need security escort. Also it is not advisable to walk alone outside capital city, that is under three rings of security check points.