mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Fix org key usecase
This commit is contained in:
parent
3e35b888a7
commit
5b109f2f8d
1 changed files with 5 additions and 0 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue