Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
views_node_access.module.patch | 576 bytes | CHiLi.HH |
Comments
Comment #1
Spark_man CreditAttribution: Spark_man commentedThis 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.
Comment #2
LeDucDuBleuet CreditAttribution: LeDucDuBleuet commentedThank you!
Comment #3
martin_klimaPatch at https://www.drupal.org/node/2543338 solves both cases.