Skip to content

Commit f59c218

Browse files
author
Nur Alam
committed
get only permission bug fixed
1 parent e80d418 commit f59c218

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Permissions.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ public function get(): array
7878
public function getOnlyPermissionsNames()
7979
{
8080
if (!$this->hasCachedPermissions()) {
81-
return sort($this->onlyPermissionsNames);
81+
sort($this->onlyPermissionsNames);
82+
83+
return $this->onlyPermissionsNames;
8284
}
8385

8486
return Cache::get(Constant::CACHE_ONLY_PERMISSIONS);

0 commit comments

Comments
 (0)