Modified: trunk/Sungrazr/Server/Api.php (99 => 100)
--- trunk/Sungrazr/Server/Api.php 2007-12-18 23:15:30 UTC (rev 99)
+++ trunk/Sungrazr/Server/Api.php 2007-12-19 01:12:07 UTC (rev 100)
@@ -177,10 +177,12 @@
// populate server api
$this->api[$class]['server_api'] = array();
foreach ($this->api[$class]['methods'] as $method => $info) {
- $server_method = $ns . $method;
- // keep track of where method originated
- $info['callback'] = array($class, $method);
- $this->api[$class]['server_api'][$server_method] = $info;
+ if ($info['access'] == 'public') {
+ $server_method = $ns . $method;
+ // keep track of where method originated
+ $info['callback'] = array($class, $method);
+ $this->api[$class]['server_api'][$server_method] = $info;
+ }
}
// cache result