Views query alter for specific node/content type My idea are instead of update the views
name to the custom code one by one. I like to apply to same content type, but
I don't know the syntax.

 function myModule_views_query_alter(&amp;$view, &amp;$query)

   if(($view-&gt;name == '?????????'){

}


I would get the node/content type "myArticle" for node table as following code

$content_type = $wrapper-&gt;type-&gt;value();


but how can I update $view-&gt;name to $views-&gt;node-&gt;type ? I try print_r the $view but not fully understand the syntax  to access the field. Not sure if I went in the wrong direction. Please advise.
If You only want to display data for specific roles to specific persons then you can use Global php in views to filter your results, Just take "User: Roles (Roles)" in your field as excluded and use its token in Global PHP field.example

if([roles] == "admin"){print [your_field_token_name];}
elseif([roles] == "your_roles"){print [your_field_token_name];}


You have to download the module of viewsphp to use global php.