Hello,

I've build a view containing nodes, these nodes are referenced to a user role using the new Drupal 8 way.

Like this:

1. go to structure/types/manage/[CONTENT_TYPE]/fields.
2. Add a Reference field with “Other” option as a target.
3. Choose "Role"

Now when a user is NOT connected to role "A" i thought nodes with this connection won't get displayed, unfortunately they are. Am i missing something?

Thanks in advance.
Nielsvoo

Comments

nielsvoo created an issue. See original summary.

nielsvoo’s picture

Issue summary: View changes
cilefen’s picture

Status: Needs work » Active
amateescu’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Fixed
Issue tags: -node reference, -Entity Reference, -user roles

If you are referencing roles directly, you are bypassing the users (i.e. the node authors) relationship, so views has no way of knowing that a node author has a role or not.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.