-
$permsArr = $this->request->getPost('permissions');
$prefix = $fruitList = '';
foreach ($permsArr as $fruit) {
$fruitList .= $prefix . "'" . $fruit . "'";
$prefix = ',';
} Returns this error:
if I manually insert the groups: $user->syncGroups('users.create','admin.create','users.access','beta.access'); then it works... |
Beta Was this translation helpful? Give feedback.
Answered by
kenjis
Dec 29, 2022
Replies: 1 comment 3 replies
-
You did: $user->syncGroups("'users.create','admin.create','users.access','beta.access'"); It does not work. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Salman937
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You did:
It does not work.