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);