agent foundation
This commit is contained in:
@@ -19,6 +19,7 @@ final class UiAccessService
|
||||
return false;
|
||||
}
|
||||
|
||||
// Cache key hashes a sorted context so order-independent inputs produce the same key.
|
||||
$normalizedContext = $this->normalizeContext($context);
|
||||
$cacheKey = $actorUserId . '|' . $ability . '|' . sha1(json_encode($normalizedContext, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?: '');
|
||||
if (array_key_exists($cacheKey, $this->decisionCache)) {
|
||||
|
||||
Reference in New Issue
Block a user