Commit 4746dc6e519683da9ca36bbafa8b39f9271bede3

Authored by Benjamin Renard
1 parent ea80fcc0

Allow TimeRetricted datasets in getObsDataTree API

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
php/WebServices/WebServer.php
@@ -305,6 +305,11 @@ class WebServer @@ -305,6 +305,11 @@ class WebServer
305 $restricted = $xp->query("//*[@group]"); 305 $restricted = $xp->query("//*[@group]");
306 306
307 foreach ($restricted as $node) { 307 foreach ($restricted as $node) {
  308 + $timeRestriction = $node->getAttribute('timeRestriction');
  309 + if (!empty($timeRestriction)) {
  310 + continue;
  311 + }
  312 +
308 $parentNode = $node->parentNode; 313 $parentNode = $node->parentNode;
309 $parentNode->removeChild($node); 314 $parentNode->removeChild($node);
310 315