From 5419309f83162eac8a2ae79c5fb4e7a3f40af40d Mon Sep 17 00:00:00 2001 From: tguillon <theo.guillon@libriciel.coop> Date: Wed, 9 Mar 2022 14:43:22 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20:=20droit=20d'acc=C3=A8s=20page=20?= =?UTF-8?q?de=20pr=C3=A9f=C3=A9rence=20quand=20l'utilisateur=20provient=20?= =?UTF-8?q?d'un=20LDAP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION.txt | 2 +- app/Controller/UsersController.php | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index ac2cdeba..7d2ed7c7 100755 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -2.1.3 +2.1.4 diff --git a/app/Controller/UsersController.php b/app/Controller/UsersController.php index 76b9b7a6..cf177056 100644 --- a/app/Controller/UsersController.php +++ b/app/Controller/UsersController.php @@ -1188,13 +1188,11 @@ class UsersController extends AppController { * @author Théo GUILLON <theo.guillon@libriciel.coop> * @add 09/04/2019 * @version V1.0.2 + * + * @modified V2.1.4 */ public function preferences() { - if ($this->Auth->user('ldap') === true) { - throw new ForbiddenException(__d('default', 'default.flasherrorPasDroitPage')); - } - $this->User->id = $this->Auth->user('id'); if (!$this->User->exists()) { -- GitLab