Contact create use role issue solved.. ( #33k7zvx )

This commit is contained in:
Cüneyt Şentürk
2022-06-29 14:43:32 +03:00
parent 32f38663d1
commit 149303a000
2 changed files with 7 additions and 7 deletions

View File

@ -57,13 +57,13 @@ class UpdateContact extends Job implements ShouldUpdate
throw new \Exception($message);
}
$customer_role = Role::all()->filter(function ($role) {
$customer_role_id = Role::all()->filter(function ($role) {
return $role->hasPermission('read-client-portal');
})->pluck('id')->toArray();
})->pluck('id')->first();
$this->request->merge([
'locale' => setting('default.locale', 'en-GB'),
'roles' => $customer_role,
'roles' => $customer_role_id,
'companies' => [$this->request->get('company_id')],
]);