Is there anyway to disable Share Page via Email feature?

I do not want users to share pages via email due to some security reasons. However I have to configure the SMTP server because I need to use to email notification.

Is there any switch that can enable/disable the share page via email button on each page?

Thanks in advance.

Hi, in menus_content.vm I see #set ($canShare = $canView && $xwiki.exists('XWiki.SharePage') && !$isGuest) so all you have to do is to delete the page XWiki.SharePage and the share page menu entry will disappear.

Hope it helps

That’s interesting to use an empty page with specific name as a switch. :grinning: