fix(types): update fake seeders types + fix bugs

This commit is contained in:
Yassine Doghri 2021-06-08 16:57:04 +00:00
commit 76a4bf3441
No known key found for this signature in database
GPG key ID: 3E7F89498B960C9F
15 changed files with 78 additions and 59 deletions

View file

@ -143,7 +143,7 @@ class UserController extends BaseController
$authorize = Services::authorization();
$roles = $this->request->getPost('roles');
$authorize->setUserGroups($this->user->id, $roles);
$authorize->setUserGroups($this->user->id, $roles ?? []);
// Success!
return redirect()