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 activated or not and ignore the permissions of other shares.