Quantcast
Channel: Active questions tagged users - Drupal Answers
Viewing all articles
Browse latest Browse all 633

Filter by field user role permission

$
0
0

I have created View permission field in the events content type. Its field type is Role, so I can select which roles can see the node.

This works fine, but when I add events content type in the view this will displays all the data. I want to filter the data by the View permission field for the currently logged-in user.

I want to show data to the roles which I selected in the node View permission field. I have tried with contextual filter with user:uid, but I don't get what I am expecting. Actually, I don't know how to do that.

How can I achieve this?

Note: I want to integrate with my content type field View permission. I will select a role in View permission field. That roles only can see the view result.


Viewing all articles
Browse latest Browse all 633

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>