From f59c218b0a7333eacaef9944edfc13fe898edb23 Mon Sep 17 00:00:00 2001 From: Nur Alam Date: Wed, 1 Mar 2023 13:22:28 +0600 Subject: [PATCH] get only permission bug fixed --- src/Permissions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Permissions.php b/src/Permissions.php index ffc43d1..4f27a0b 100644 --- a/src/Permissions.php +++ b/src/Permissions.php @@ -78,7 +78,9 @@ public function get(): array public function getOnlyPermissionsNames() { if (!$this->hasCachedPermissions()) { - return sort($this->onlyPermissionsNames); + sort($this->onlyPermissionsNames); + + return $this->onlyPermissionsNames; } return Cache::get(Constant::CACHE_ONLY_PERMISSIONS);