Skip to content

Commit

Permalink
Clear roles array after hydrate from cache (#2099)
Browse files Browse the repository at this point in the history
  • Loading branch information
angeljqv committed Jun 29, 2022
1 parent d26cb3d commit f2303a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PermissionRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,5 +378,7 @@ private function hydrateRolesCache()
$role = $roleInstance->newFromBuilder($this->aliasedArray($item));
$this->cachedRoles[$role->getKey()] = $role;
}, $this->permissions['roles']);

$this->permissions['roles'] = [];
}
}

0 comments on commit f2303a7

Please sign in to comment.