ACF Relationship – Exclude pages not created by author

If you want to exclude ALL pages that doese’t have ‘collaborator’ set as author, then you want to exclude all other pages in the site and include all pages of that author minus, maybe, some hand picked pages of that author, then I think you can use this:

add_filter('acf/fields/relationship/query/name=products', 'exclude_id', 10, 3);

function exclude_id ( $args, $post ) { //$field input vriable wasn't neccessary in this function

   $args['post__not_in'] = array( $post, 9, 10, 11 );
   $args['author_name'] = 'collaborator'; // Queries only the collbaroator's posts

   return $args;
}