Skip to content

Commit a9844ac

Browse files
Issue #133 fixed
1 parent 674c671 commit a9844ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/Webkul/Admin/src/Http/Controllers/Setting/RoleController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ public function store()
6868
$roleData = request()->all();
6969

7070
if ($roleData['permission_type'] == 'custom') {
71+
if (! isset($roleData['permissions'])) {
72+
$roleData['permissions'] = [];
73+
}
74+
7175
array_push($roleData['permissions'], "admin.datagrid.api");
7276
}
7377

0 commit comments

Comments
 (0)