Fix org key usecase

This commit is contained in:
Matej Bačo
2026-05-14 19:52:14 +02:00
parent 3e35b888a7
commit 5b109f2f8d
+5
View File
@@ -1170,6 +1170,11 @@ return function (Container $context): void {
}
}
// API key auth bypasses membership check; key validity is verified later
if (!empty($request->getHeader('x-appwrite-key', ''))) {
return $team;
}
// Unauthorized, do not allow the team
return new Document([]);
}, ['project', 'dbForPlatform', 'utopia', 'request', 'authorization', 'user']);