adding password protection check to getShareByToken()
Merge pull request #1620 from owncloud/fixing-gallery-password-protected-access-master

adding password protection check to getShareByToken()