Initial commit for update to ACL for REST module; NEEDS TESTING

This commit is contained in:
Duncan Sommerville 2015-01-21 15:34:15 -05:00
parent 52a66632c6
commit 2c2f7ebc5f
2 changed files with 6 additions and 6 deletions

View file

@ -113,11 +113,6 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
//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", "upgrade"))) {
$this->setRoleName("G");
} elseif (!Zend_Auth::getInstance()->hasIdentity()) {