From 83547e3fed50302bc45636d0c4820b48c27177fd Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 5 Dec 2017 18:17:11 -0800 Subject: [PATCH] Prepopulate ther groups array on create --- app/Http/Controllers/GroupsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/GroupsController.php b/app/Http/Controllers/GroupsController.php index 1eb0b86f89..8db126f6c5 100755 --- a/app/Http/Controllers/GroupsController.php +++ b/app/Http/Controllers/GroupsController.php @@ -47,7 +47,7 @@ class GroupsController extends Controller $group = new Group; // Get all the available permissions $permissions = config('permissions'); - $groupPermissions = array(); + $groupPermissions = Helper::selectedPermissionsArray($permissions, $permissions); $selectedPermissions = Input::old('permissions', $groupPermissions); // Show the page