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