CC-5701: Airtime File API

Beginnings of fil rest api
index, get, post actions working without authentication
This commit is contained in:
drigato 2014-02-27 17:11:17 -05:00
parent 1715f2187d
commit 64c1dd2c1e
7 changed files with 169 additions and 0 deletions

View file

@ -110,6 +110,13 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
{
$controller = strtolower($request->getControllerName());
//Ignore authentication for all access to the rest API. We do auth via API keys for this
//and/or by OAuth.
if (strtolower($request->getModuleName()) == "rest")
{
return;
}
if (in_array($controller, array("api", "auth", "locale"))) {
$this->setRoleName("G");