In function views_node_access_check_node_type callbacks to views_check_roles are occasionally fired. When these callbacks occur, the argument provided to views_check_roles is a multidimensional array, which will not validate.

Argument given (examlpe):
array( 0 => array( 0 => array( 4 => 4 ) ) )

Argument needed:
array( 0 => array( 4 => 4 ) )

Attached is a patch fixing solely this issue.

CommentFileSizeAuthor
views_node_access.module.patch576 bytesCHiLi.HH
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Spark_man’s picture

This patch solves the issue with Node + Role access but Node + Permission still fails. I suspect a similar approach would fix the that scenario as well. I'll give it a try later today.

LeDucDuBleuet’s picture

Issue summary: View changes
Status: Active » Reviewed & tested by the community

Thank you!

martin_klima’s picture

Patch at https://www.drupal.org/node/2543338 solves both cases.