-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Description
I don't know exactly if I am doing something wrong or there is a problem with syncGroups()
If I do this:
$groups = "'" . implode("', '", $this->request->getPost('groups')) . "'";
$user->syncGroups($groups);
Returns this error:
CodeIgniter\Shield\Authorization\AuthorizationException #401
'admin', 'user' is not a valid group.
if I manually insert the groups:
$user->syncGroups('admin','user');
then it works...
Metadata
Metadata
Assignees
Labels
No labels