From 6945e602b8ae6106fd5e10d7243a65573e4c9b16 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Thu, 8 Dec 2022 11:35:22 +0100 Subject: [PATCH] chg: [users:edit] Added role associated data for the user to be edited --- src/Controller/UsersController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controller/UsersController.php b/src/Controller/UsersController.php index 6e40d29..ef1737a 100644 --- a/src/Controller/UsersController.php +++ b/src/Controller/UsersController.php @@ -189,7 +189,8 @@ class UsersController extends AppController ], 'fields' => [ 'password', 'confirm_password' - ] + ], + 'contain' => ['Roles', ], ]; if ($this->request->is(['get'])) { $params['fields'] = array_merge($params['fields'], ['individual_id', 'role_id', 'disabled']);