Fixed incorrect user matching when enforcing user ids.

This commit is contained in:
Abdulmhsen B. A. A
2022-04-15 23:34:04 +03:00
parent 580febd4e3
commit 7e995fe9b0

View File

@@ -320,7 +320,7 @@ if (!function_exists('serveHttpRequest')) {
continue;
}
$userId = ag($info, 'user_id', null);
$userId = ag($info, 'user', null);
$matchUser = true === ag($info, 'webhook.match.user') && null !== $userId;
if (true === $matchUser && $userId !== $request->getAttribute('USER_ID', null)) {
continue;