2792 Hide Share button on works when the preference is set
2792 No earthly reason to keep the logic in the share file itself now
Merge pull request #1488 from sarken/issue_2792

2792 Hide Share button on works when the preference is set