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