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