Skip to content
Snippets Groups Projects
Commit 5419309f authored by tguillon's avatar tguillon
Browse files

Correction : droit d'accès page de préférence quand l'utilisateur provient d'un LDAP

parent 08ca81f8
No related branches found
No related tags found
No related merge requests found
Pipeline #23689 failed
2.1.3 2.1.4
...@@ -1188,13 +1188,11 @@ class UsersController extends AppController { ...@@ -1188,13 +1188,11 @@ class UsersController extends AppController {
* @author Théo GUILLON <theo.guillon@libriciel.coop> * @author Théo GUILLON <theo.guillon@libriciel.coop>
* @add 09/04/2019 * @add 09/04/2019
* @version V1.0.2 * @version V1.0.2
*
* @modified V2.1.4
*/ */
public function preferences() public function preferences()
{ {
if ($this->Auth->user('ldap') === true) {
throw new ForbiddenException(__d('default', 'default.flasherrorPasDroitPage'));
}
$this->User->id = $this->Auth->user('id'); $this->User->id = $this->Auth->user('id');
if (!$this->User->exists()) { if (!$this->User->exists()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment