summaryrefslogtreecommitdiffstats
path: root/application/controllers/GearmanController.php
diff options
context:
space:
mode:
authorSebastian Wagner2011-07-21 17:26:22 +0200
committerSebastian Wagner2011-07-21 17:26:22 +0200
commit48e288ac3d04c19144d55a5b8bb624a7af9e4f03 (patch)
treeb8f1a5b46a7141e9690c21ef2d55136e021a6353 /application/controllers/GearmanController.php
parentgearman-test view added (diff)
downloadpoolctrl-48e288ac3d04c19144d55a5b8bb624a7af9e4f03.tar.gz
poolctrl-48e288ac3d04c19144d55a5b8bb624a7af9e4f03.tar.xz
poolctrl-48e288ac3d04c19144d55a5b8bb624a7af9e4f03.zip
autentification in gearmantestview added
Diffstat (limited to 'application/controllers/GearmanController.php')
-rw-r--r--application/controllers/GearmanController.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/application/controllers/GearmanController.php b/application/controllers/GearmanController.php
index 562f7d4..178e18b 100644
--- a/application/controllers/GearmanController.php
+++ b/application/controllers/GearmanController.php
@@ -6,8 +6,15 @@ class GearmanController extends Zend_Controller_Action
public function init()
{
- $this->gearmanClient = new GearmanClient();
- $this->gearmanClient->addServer('127.0.0.1');
+
+ if (Zend_Auth::getInstance()->hasIdentity()) {
+ $this->userIDsNamespace = Zend_Session::namespaceGet('userIDs');
+ $this->gearmanClient = new GearmanClient();
+ $this->gearmanClient->addServer('127.0.0.1');
+ } else {
+ $this->_helper->redirector('login', 'auth');
+ return;
+ }
}
public function indexAction()