summaryrefslogtreecommitdiffstats
path: root/application/controllers/GearmanController.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-07 16:50:33 +0200
committerBjörn Geiger2011-09-07 16:50:33 +0200
commit345dd68e5223d54dd9bf2b5d744d7028998fbf2a (patch)
tree1fe947d119a5ebfd0c4a71eacd2068aa4c6cdd22 /application/controllers/GearmanController.php
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-345dd68e5223d54dd9bf2b5d744d7028998fbf2a.tar.gz
poolctrl-345dd68e5223d54dd9bf2b5d744d7028998fbf2a.tar.xz
poolctrl-345dd68e5223d54dd9bf2b5d744d7028998fbf2a.zip
minor
Diffstat (limited to 'application/controllers/GearmanController.php')
-rw-r--r--application/controllers/GearmanController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/application/controllers/GearmanController.php b/application/controllers/GearmanController.php
index 8c807bc..e959c42 100644
--- a/application/controllers/GearmanController.php
+++ b/application/controllers/GearmanController.php
@@ -14,13 +14,13 @@ class GearmanController extends Zend_Controller_Action
public function init()
{
- if (Zend_Auth::getInstance()->hasIdentity()) {
+ /*if (Zend_Auth::getInstance()->hasIdentity()) {
$bootstrap = $this->getInvokeArg('bootstrap');
$this->config = $bootstrap->getOptions();
$this->pbs2host = $this->config['pbs2']['host'];
$this->userIDsNamespace = Zend_Session::namespaceGet('userIDs');
if(isset($this->userIDsNamespace['apikey'])) {
- $this->acl = new Poolctrl_Acl($this->pbs2host, $this->config['pbs2']['checkright'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
+ $this->acl = new Poolctrl_Acl($this->pbs2host, $this->config['pbs2']['checkright'] . $this->userIDsNamespace['apikey'], 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
}
$this->gearmanServerPort = $this->config['gearman']['server']['port'];
$this->gearmanServerHost = $this->config['gearman']['server']['host'];
@@ -28,11 +28,11 @@ class GearmanController extends Zend_Controller_Action
$this->gearmanWorkerUpdateRate = $this->config['gearman']['worker']['updateRate'];
$this->gearmanClient = new GearmanClient();
$this->gearmanClient->addServer($this->gearmanServerHost);
- } else {
+ } else {
$this->_helper->redirector('login', 'auth');
return;
- }
-
+ }*/
+ $this->_redirect('/');
}
public function indexAction()