@@ 325-331 (lines=7) @@ | ||
322 | $formatter->setCustomAddFields( |
|
323 | array_intersect((array)$formatter->getCustomAddFields(), (array)$apiAccess['view']) |
|
324 | ); |
|
325 | if ($formatter->getCustomFields()) { |
|
326 | $formatter->setCustomFields( |
|
327 | array_intersect((array)$formatter->getCustomFields(), (array)$apiAccess['view']) |
|
328 | ); |
|
329 | } else { |
|
330 | $formatter->setCustomFields((array)$apiAccess['view']); |
|
331 | } |
|
332 | if ($formatter->getCustomRelations()) { |
|
333 | $formatter->setCustomRelations( |
|
334 | array_intersect((array)$formatter->getCustomRelations(), (array)$apiAccess['view']) |
|
@@ 332-338 (lines=7) @@ | ||
329 | } else { |
|
330 | $formatter->setCustomFields((array)$apiAccess['view']); |
|
331 | } |
|
332 | if ($formatter->getCustomRelations()) { |
|
333 | $formatter->setCustomRelations( |
|
334 | array_intersect((array)$formatter->getCustomRelations(), (array)$apiAccess['view']) |
|
335 | ); |
|
336 | } else { |
|
337 | $formatter->setCustomRelations((array)$apiAccess['view']); |
|
338 | } |
|
339 | } |
|
340 | ||
341 | // set relation depth |