Alfter installing this module I've found problems with the by rol permissions assigned in my Views. Views don't list their elements if you haven't granted "Administer content" permissions. After uninstalling, views permissions worked as also.

Comments

espurnes’s picture

Issue summary: View changes

I have the same problem with views. Any progress on this issue?

entendu’s picture

Status: Active » Postponed (maintainer needs more info)

Have you tried rebuilding permissions?

espurnes’s picture

Yes I did it with 7.x-1.1+1-dev and now also with 7.x-1.1+4-dev and the problem is not solved.

But I have more info. It only happens (to me) in a view with a relation "entity reference".

  • I have two content types: let's say Property and Owner.
  • Property has an entity reference to Owner.
  • The view lists Properties and has a relation to show the Owner's information (Name, Surname, etc).
  • View has defined Role based permission.

If view unpublished is enabled user can not see view's results. Even if "Administer Content" is enabled. Only User-1 can see them.
With the module disabled results can be seen as spected by all the roles defined in the view.

I hope it helps to solve the problem.

Thank you entendu.

sebdec’s picture

Same problem as espurnes
it happens when there is a relation entity referenced in a view

espurnes’s picture

New info:

It seems the issue is related to this other issue (node_access breaks any query that has node table appearing twice with a left join: https://drupal.org/node/1349080) and affects views with entity_reference or node_reference with no defined value.

I checked that in my view, I can see just the nodes that has the entity_reference set. The nodes without the reference are not shown.

I didn't try to apply any patch. I just found the issue and I posted this.

urbanbricks’s picture

I want to confirm that I applied patch #195 from the node_access issue mentioned above, and this has resolved a similar issue on my site with anonymous and other non super-admin users loosing access to certain views.

entendu’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Closing this unless more info comes to light.