mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
phpstan
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user