check only permission from link-share to decide if public upload is enabled or disabled
we can leave the loop if the permission of the link share was checked
Merge pull request #4887 from owncloud/sharing_disable_public_upload

check only permission from link-share to decide if public upload is enabled or disabled