we can leave the loop if the permission of the link share was checked