From 1e33ae25346e41a24463259c136a2bb62ff342a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Sun, 11 May 2014 15:47:32 +0200 Subject: [PATCH] password --- app/Controller/HomeController.php | 3 +++ app/View/Elements/navbar.ctp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Controller/HomeController.php b/app/Controller/HomeController.php index 2c4622d..9ebbf34 100755 --- a/app/Controller/HomeController.php +++ b/app/Controller/HomeController.php @@ -32,6 +32,9 @@ class HomeController extends AppController { public function home() { $this->MiconwareSession->init($this); $this->MiconwareSession->initWeb($this); + $c = $this->MiconwareSession->getCompany(); + if (!empty($c)) + return $this->redirect(array('controller'=>'home','action' => 'company')); $openings = $this->DreamjobJobOpening->find('all',array('conditions'=>$this->MiconwareSession->getOpeningCondition(), 'order'=>'DreamjobJobOpening.id DESC','limit'=> self::$opening_limit)); $this->set('openings',$openings); diff --git a/app/View/Elements/navbar.ctp b/app/View/Elements/navbar.ctp index ba612f1..73d9b85 100755 --- a/app/View/Elements/navbar.ctp +++ b/app/View/Elements/navbar.ctp @@ -1,8 +1,9 @@