From 3ff51a59ba97f3ef1df3c26df16d9a3ab5789843 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 25 Oct 2012 19:06:32 +0200 Subject: Ajout fonctionnalité connexion avec Persona (à améliorer sans doute) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/entryController.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/controllers/entryController.php') diff --git a/app/controllers/entryController.php b/app/controllers/entryController.php index 3d9734ca9..cf510e362 100755 --- a/app/controllers/entryController.php +++ b/app/controllers/entryController.php @@ -2,6 +2,13 @@ class entryController extends ActionController { public function firstAction () { + if (login_is_conf ($this->view->conf) && !is_logged ()) { + Error::error ( + 403, + array ('error' => array ('Vous n\'avez pas le droit d\'accéder à cette page')) + ); + } + $ajax = Request::param ('ajax'); if ($ajax) { $this->view->_useLayout (false); -- cgit v1.2.3