Commit dbfec5fa authored by nicola85's avatar nicola85

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

parent 056d9066
......@@ -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
// by the view query matches the same bundle and belongs to the user.
$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('uid'), $account->id())
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment