chg: [users:edit] Added role associated data for the user to be edited

pull/121/head
Sami Mokaddem 2022-12-08 11:35:22 +01:00
parent 1b47b669ff
commit 6945e602b8
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ class UsersController extends AppController
], ],
'fields' => [ 'fields' => [
'password', 'confirm_password' 'password', 'confirm_password'
] ],
'contain' => ['Roles', ],
]; ];
if ($this->request->is(['get'])) { if ($this->request->is(['get'])) {
$params['fields'] = array_merge($params['fields'], ['individual_id', 'role_id', 'disabled']); $params['fields'] = array_merge($params['fields'], ['individual_id', 'role_id', 'disabled']);