VIVO-272 Refactor scripts: get_permission_and_go()