Marginally better error handling for 401 in REST controller

This commit is contained in:
Albert Santoni 2015-02-06 15:20:01 -05:00
parent 7bf96e09a5
commit a20f90cd2d
2 changed files with 10 additions and 4 deletions

View file

@ -119,12 +119,12 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
// we need to do API key verification
if ($request->getModuleName() == "rest") {
if (!$this->verifyAuth()) {
$this->denyAccess();
//$this->denyAccess();
//$this->getResponse()->sendResponse();
//$r->gotoSimpleAndExit('index', 'login', $request->getModuleName());
//die();
return;
throw new Zend_Controller_Exception("hi", 401);
}
}