Merge pull request #908 from chillu/pulls/xmldataformatter-canview

API Removed permission checks from XML/JSON data formatters
This commit is contained in:
Ingo Schommer 2012-11-01 01:21:47 -07:00
commit 48b93312c4

View File

@ -139,7 +139,7 @@ class XMLDataFormatter extends DataFormatter {
$xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$xml .= (is_numeric($this->totalSize)) ? "<$className totalSize=\"{$this->totalSize}\">\n" : "<$className>\n";
foreach($set as $item) {
if($item->canView()) $xml .= $this->convertDataObjectWithoutHeader($item, $fields);
$xml .= $this->convertDataObjectWithoutHeader($item, $fields);
}
$xml .= "</$className>";