Skip to content
Snippets Groups Projects
Commit dbfec5fa authored by Nicolò Caruso's avatar Nicolò Caruso
Browse files

Issue #3021897 by sonixax: Call to undefined function c_and() in bat_entity_access_query_alter()

parent 056d9066
No related branches found
No related tags found
No related merge requests found
...@@ -361,7 +361,7 @@ function bat_entity_access_query_alter($query, $entity_type, $base_table = NULL, ...@@ -361,7 +361,7 @@ function bat_entity_access_query_alter($query, $entity_type, $base_table = NULL,
// Add an AND condition group that grants access if the entity specified // Add an AND condition group that grants access if the entity specified
// by the view query matches the same bundle and belongs to the user. // by the view query matches the same bundle and belongs to the user.
$c_and = new Condition('AND'); $c_and = new Condition('AND');
$conditions->condition(c_and() $conditions->condition($c_and
->condition($base_table . '.' . $entity_info->getKey('bundle'), $bundle_name) ->condition($base_table . '.' . $entity_info->getKey('bundle'), $bundle_name)
->condition($base_table . '.' . $entity_info->getKey('uid'), $account->id()) ->condition($base_table . '.' . $entity_info->getKey('uid'), $account->id())
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment