Fix user session storage in multi-tenancy mode

This commit is contained in:
Albert Santoni 2014-06-23 15:22:44 -04:00
parent f573257dc6
commit a2bef67d33
3 changed files with 20 additions and 9 deletions

View file

@ -109,9 +109,9 @@ class Zend_Controller_Plugin_Acl extends Zend_Controller_Plugin_Abstract
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$controller = strtolower($request->getControllerName());
Application_Model_Auth::pinSessionToClient(Zend_Auth::getInstance());
if (in_array($controller, array("api", "auth", "locale"))) {
$this->setRoleName("G");
} elseif (!Zend_Auth::getInstance()->hasIdentity()) {