diff --git a/app/Http/Controllers/Admin/BaseController.php b/app/Http/Controllers/Admin/BaseController.php index da48a61..4fca0fc 100644 --- a/app/Http/Controllers/Admin/BaseController.php +++ b/app/Http/Controllers/Admin/BaseController.php @@ -80,7 +80,11 @@ class BaseController extends Controller $authArr[$authKey] = 1; } $key = explode('.',$authKey); - $newArr[$key[1]] = $authArr[$authKey]; + if (isset($newArr[$key[1]])) { + $newArr[$key[1] . '_child'] = $authArr[$authKey]; + } else { + $newArr[$key[1]] = $authArr[$authKey]; + } } return $newArr; }