Prepopulate ther groups array on create

This commit is contained in:
snipe 2017-12-05 18:17:11 -08:00
parent 3d0525bc51
commit 83547e3fed

View file

@ -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