This commit is contained in:
Hemachandar
2026-03-24 18:35:18 +05:30
parent 5ea93d2612
commit eecdab6814
+3 -1
View File
@@ -382,10 +382,12 @@ function router(Http $utopia, Database $dbForPlatform, callable $getProjectDB, S
// isExecutionAllowed remains false
}
/** @var \Appwrite\Utopia\Database\Documents\User | null */
$user = null;
$userExists = false;
$userId = $payload['userId'] ?? '';
if (!empty($userId)) {
/** @var \Appwrite\Utopia\Database\Documents\User */
$user = $authorization->skip(fn () => $dbForProject->getDocument('users', $userId));
if (!$user->isEmpty() && $user->getAttribute('status', false)) {
$userExists = true;