mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-13 03:28:19 +00:00
remove api-key-org association for root keys
This commit is contained in:
@@ -35,6 +35,11 @@ export async function verifyApiKeyApiKeyAccess(
|
||||
);
|
||||
}
|
||||
|
||||
if (callerApiKey.isRoot) {
|
||||
// Root keys can access any key in any org
|
||||
return next();
|
||||
}
|
||||
|
||||
const [callerApiKeyOrg] = await db
|
||||
.select()
|
||||
.from(apiKeyOrg)
|
||||
|
||||
Reference in New Issue
Block a user