Skip to content

Commit

Permalink
Merge pull request #2754 from spatie/remove-v5-cache-fallback
Browse files Browse the repository at this point in the history
Remove v5 cache fallback
  • Loading branch information
drbyte authored Nov 5, 2024
2 parents 8efe3d4 + e8b97e3 commit b78c535
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/PermissionRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,6 @@ private function loadPermissions(): void
$this->cacheKey, $this->cacheExpirationTime, fn () => $this->getSerializedPermissionsForCache()
);

// fallback for old cache method, must be removed on next major version
if (! isset($this->permissions['alias'])) {
$this->forgetCachedPermissions();
$this->loadPermissions();

return;
}

$this->alias = $this->permissions['alias'];

$this->hydrateRolesCache();
Expand Down

0 comments on commit b78c535

Please sign in to comment.