title: Drupal filter view on taxonomy term and user role
body: <p>I have a rather basic question but I can not wrap my mind around how to solve it "nice".
  I have a node type that contains calendar info, I use views to get the month-view rendered nice and all is good so far.
  Next thing was to make the calendar view also contain nodes of type "group_xyz" but only display these events when a user is logged in I managed to do that with filtering using a couple of lines PHP to get user id and node type, but already here it didnt feel like a real drupalish solution...</p>
  
  <p>To my problem, we would like to limit the display of calendar posts depending on the user role and a taxonomy term used in the node.</p>
  
  <p>So the node has a taxonomy term reference "visibility_to" lets say one of (All, Internal, Administrators) set.
  The user can be either guest, logged in user or administrator.</p>
  
  <p>Now I would like to find a nice way to filter like this: Display the item IF node-type is calendar AND ( (visibility_to == "All") OR ( (visibility_to == "Internal") AND (role=="administrator" OR role == "logged_in") OR (visisbility_to == "Administrators" AND role =="administrator"))</p>
  
  <p>I think you get the point... I think I could manage to hard code this in PHP but the day when we add new roles, new taxonomy terms I would rather have all this configured using the admin interface...</p>
  
  <p>Any help and/or suggestions is appreciated.
  Also posted in drupal forums at: <a href="http://drupal.org/node/1879238" rel="nofollow">http://drupal.org/node/1879238</a></p>