tout les groups sur rest user
This commit is contained in:
parent
e59b85701c
commit
025009e76c
|
@ -130,15 +130,13 @@ class RestController extends Controller
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($groupsshared) {
|
foreach($user->getGroups() as $usergroup) {
|
||||||
foreach($groupsshared as $groupshared) {
|
|
||||||
$tmp=[];
|
$tmp=[];
|
||||||
$tmp["id"] = $groupshared->getId();
|
$tmp["id"] = $usergroup->getGroup()->getId();
|
||||||
$tmp["title"] = $groupshared->getLabel();
|
$tmp["title"] = $usergroup->getGroup()->getLabel();
|
||||||
|
|
||||||
array_push($output["groups"],$tmp);
|
array_push($output["groups"],$tmp);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Retour
|
// Retour
|
||||||
return new Response(json_encode($output), 200);
|
return new Response(json_encode($output), 200);
|
||||||
|
|
Loading…
Reference in New Issue