Add a test before creating a link towards an object to prevent permission issues.