I try to customize accessPortalOnlyAccount.
whereClause can't have two 'OR' elements - all elements should be in one 'OR' element.
Return from parent::accessPortalOnlyAccount looks like
and only how can I add some conditions to 'OR' is $result['whereClause'][0]['OR'][]=[something].
I assume that the code
should be
for clear access in customized function
without [0].
Am I right?
whereClause can't have two 'OR' elements - all elements should be in one 'OR' element.
Return from parent::accessPortalOnlyAccount looks like
Code:
"whereClause": [ { "OR": { } } ]
I assume that the code
PHP Code:
$result['whereClause'][] = [
'OR' => $or
];
PHP Code:
$result['whereClause']['OR'] =$or;
PHP Code:
$result['whereClause']['OR']
Am I right?
Comment