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