|
@@ 361-367 (lines=7) @@
|
| 358 |
|
$formatter->setCustomAddFields( |
| 359 |
|
array_intersect((array)$formatter->getCustomAddFields(), (array)$apiAccess['view']) |
| 360 |
|
); |
| 361 |
|
if ($formatter->getCustomFields()) { |
| 362 |
|
$formatter->setCustomFields( |
| 363 |
|
array_intersect((array)$formatter->getCustomFields(), (array)$apiAccess['view']) |
| 364 |
|
); |
| 365 |
|
} else { |
| 366 |
|
$formatter->setCustomFields((array)$apiAccess['view']); |
| 367 |
|
} |
| 368 |
|
if ($formatter->getCustomRelations()) { |
| 369 |
|
$formatter->setCustomRelations( |
| 370 |
|
array_intersect((array)$formatter->getCustomRelations(), (array)$apiAccess['view']) |
|
@@ 368-374 (lines=7) @@
|
| 365 |
|
} else { |
| 366 |
|
$formatter->setCustomFields((array)$apiAccess['view']); |
| 367 |
|
} |
| 368 |
|
if ($formatter->getCustomRelations()) { |
| 369 |
|
$formatter->setCustomRelations( |
| 370 |
|
array_intersect((array)$formatter->getCustomRelations(), (array)$apiAccess['view']) |
| 371 |
|
); |
| 372 |
|
} else { |
| 373 |
|
$formatter->setCustomRelations((array)$apiAccess['view']); |
| 374 |
|
} |
| 375 |
|
} |
| 376 |
|
|
| 377 |
|
// set relation depth |