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