Skip to content

Commit

Permalink
Remove v5 cache fallback
Browse files Browse the repository at this point in the history
Ref #1912
  • Loading branch information
drbyte authored Nov 4, 2024
1 parent 8efe3d4 commit e8b97e3
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 e8b97e3

Please sign in to comment.