From 4c78da3bbfdfa4fc6769635789e7ced037b04e5a Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 28 May 2024 13:03:09 -0700 Subject: [PATCH] Re-add json encoding of permissions --- app/Http/Controllers/Api/GroupsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/GroupsController.php b/app/Http/Controllers/Api/GroupsController.php index f76d23b3ae..3fa7ca48f0 100644 --- a/app/Http/Controllers/Api/GroupsController.php +++ b/app/Http/Controllers/Api/GroupsController.php @@ -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')));