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

Only consider the permission of the public link share to decide if public upload is possible or not and ignore the permissions of other shares.