0

I have a view which prints out a table of blog posts. There are 2 columns - title and tags.

If a post has a tag assigned to it called core-team then users with the role non-core shouldn't be able to see the post displayed in the table.

The view which is created displays every blog post so everyone can see them - but I can't figure out how to remove or not show a row from the view if the user logged in is non-core and the post has the tag core-team.

Any ideas?

2

This isn't a views' problem. I'm assuming that the non-core users should not have access to the content that has the core-team tag anywhere (not just in the specific view). That's because if you use a "hack" to remove the result from the view, someone entering the specific blog post's url directly in his browser would take him to the node.

What you actually need to do is use the Taxonomy Access Control module to restrict access to the "core-team" tag. When you do that, the non-core user will not have permission to view the content tagged as "core-team", so the view will not display these results either (assuming that in the access restrictions of the view you left the default value of: "Permission").

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.