Skip to content

Commit

Permalink
Merge pull request #908 from chillu/pulls/xmldataformatter-canview
Browse files Browse the repository at this point in the history
API Removed permission checks from XML/JSON data formatters
  • Loading branch information
chillu committed Nov 1, 2012
2 parents c090b31 + d54b1b4 commit 48b9331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/XMLDataFormatter.php
Expand Up @@ -139,7 +139,7 @@ public function convertDataObjectSet(SS_List $set, $fields = null) {
$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>";

Expand Down

0 comments on commit 48b9331

Please sign in to comment.