Re-add json encoding of permissions

This commit is contained in:
Marcus Moore 2024-05-28 13:03:09 -07:00
parent 71bab2c315
commit 4c78da3bbf
No known key found for this signature in database

View file

@ -68,7 +68,7 @@ class GroupsController extends Controller
$group->name = $request->input('name');
$group->created_by = Auth::user()->id;
$group->permissions = $request->input('permissions', $groupPermissions);
$group->permissions = json_encode($request->input('permissions', $groupPermissions));
if ($group->save()) {
return response()->json(Helper::formatStandardApiResponse('success', (new GroupsTransformer)->transformGroup($group), trans('admin/groups/message.success.create')));