diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-21 14:17:28 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-21 14:17:28 +0000 |
commit | 32e60f1c2228e2a46707d15bec10cd54e476076c (patch) | |
tree | b175c135564801c598bd20644edbfa85580ae220 /h-source/Application/Controllers/GenericController.php | |
parent | 5f551b2d89b02cd159bf35723695ab2343a87248 (diff) |
added ethernet cards to the list of allowed hardware
Diffstat (limited to 'h-source/Application/Controllers/GenericController.php')
-rw-r--r-- | h-source/Application/Controllers/GenericController.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php index 8ab98ba..f955820 100644 --- a/h-source/Application/Controllers/GenericController.php +++ b/h-source/Application/Controllers/GenericController.php @@ -75,8 +75,8 @@ class GenericController extends BaseController $this->s['registered']->checkStatus(); -// if ($this->s['registered']->status['status'] === 'logged') -// { + if ($this->s['registered']->status['status'] === 'logged' or Website::$allowAnonymousSubmission === "yes") + { // if (!$this->s['registered']->checkCsrf($clean['token'])) $this->redirect($this->controller.'/catalogue/'.$this->lang,2,'wrong token..'); // if ($this->m['UsersModel']->isBlocked($this->s['registered']->status['id_user'])) $this->redirect('my/home/'.$this->lang,2,'your account has been blocked..'); @@ -145,11 +145,11 @@ class GenericController extends BaseController $this->clean(); $this->load('xml_response'); } -// } -// else -// { -// $this->redirect("users/login/".$this->lang."?redirect=".$this->controller."/catalogue/".$this->lang,0); -// } + } + else + { + $this->redirect("users/login/".$this->lang."?redirect=".$this->controller."/catalogue/".$this->lang,0); + } } public function del($lang = 'en', $token = '') |