diff --git a/composer.json b/composer.json index 4940ce66a..20b1865d9 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "keywords": ["laravel", "cms"], "homepage": "https://www.webreinvent.com", "license": "MIT", - "version": "0.4.1", + "version": "0.4.2", "authors": [ { "name": "WebReinvent", diff --git a/src/Entities/User.php b/src/Entities/User.php index 2b3ea907c..436d35bd6 100644 --- a/src/Entities/User.php +++ b/src/Entities/User.php @@ -965,7 +965,7 @@ public function getPermissionsSlugs() foreach ($roles as $role) { $permissions = $role->permissions()->get(); foreach ($permissions as $permission) { - $permissions_list[$permission->id] = $permission->slug; + $permissions_list[] = $permission->slug; } } return $permissions_list;