This commit is contained in:
Hemachandar
2026-02-25 13:58:14 +05:30
parent e0d1c0a95d
commit c4dda0751e
+2 -1
View File
@@ -373,7 +373,8 @@ function router(Http $utopia, Database $dbForPlatform, callable $getProjectDB, S
$payload = [];
try {
$payload = $jwt->decode($userJwt);
} catch (JWTException $error) {}
} catch (JWTException $error) {
}
$userId = $payload['userId'] ?? '';
$isExecutionAllowed = \in_array("user:{$userId}", $permissions);