Skip to content

Commit

Permalink
get only permission bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Nur Alam committed Mar 1, 2023
1 parent e80d418 commit f59c218
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f59c218

Please sign in to comment.