This link is being shown even if the search engine is disabled - in which case if gives a standard "No Permission" eror which seems confusing.
The link should either not be shown at all if search is disabled or it should give a better message like "This feature has been administratively disabled".
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.13).
Change log:
Check search permissions when displaying the 'Your content' link in the visitor menu