From 5ccc6e96ef20bf8b873411b639f8fd7187678f78 Mon Sep 17 00:00:00 2001 From: Pradeep Date: Wed, 25 Mar 2020 19:09:47 +0530 Subject: [PATCH] permissions slug --- composer.json | 2 +- src/Entities/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;