only show "share with others" and "share by link" navigation bar entries if user is allowed to share files
remove share permissions if user is excluded from sharing
Merge pull request #10288 from owncloud/sharing_dont_show_share_dialog

don't show share dialog and navigation entry if sharing was disabled for the user