Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 83f095d

Browse files
committed
Merge branch 'release/v7.3.1'
2 parents 2b2f0ce + df19fa6 commit 83f095d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
55
This project adheres to [Semantic Versioning](CONTRIBUTING.md).
66

77

8+
## [v7.3.1] - 2023-08-30
9+
- Support new accessarea file-based structure
10+
811
## [v7.3.0] - 2023-08-28
912
- Support multiple themes
1013
- Remove `/vendor` from namespaced view paths to simplify the path
@@ -320,6 +323,7 @@ This project adheres to [Semantic Versioning](CONTRIBUTING.md).
320323
## v0.0.1 - 2016-12-20
321324
- Tag first release
322325

326+
[v7.3.1]: https://github.com/rinvex/laravel-support/compare/v7.3.0...v7.3.1
323327
[v7.3.0]: https://github.com/rinvex/laravel-support/compare/v7.2.6...v7.3.0
324328
[v7.2.6]: https://github.com/rinvex/laravel-support/compare/v7.2.5...v7.2.6
325329
[v7.2.5]: https://github.com/rinvex/laravel-support/compare/v7.2.4...v7.2.5

src/Traits/HashidsTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function unhashId($value)
5858
*/
5959
protected function shouldBeHashed(): bool
6060
{
61-
$accessareas = (array) $this->obscure + app('accessareas')->where('is_obscured', true)->pluck('slug')->toArray();
61+
$accessareas = app('accessareas')->active()->obscured()->keys()->when($this->obscure, fn($collection) => $collection->merge(collect($this->obscure)->intersect(app('accessareas')->active()->keys()))->unique())->toArray();
6262

6363
return in_array(request()->accessarea(), $accessareas) && in_array($this->getRouteKeyName(), config('cortex.foundation.obscure.hashed_keys'));
6464
}

0 commit comments

Comments
 (0)