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:
@@ -66,6 +66,11 @@ export async function verifyApiKeyTargetAccess(
|
||||
);
|
||||
}
|
||||
|
||||
if (apiKey.isRoot) {
|
||||
// Root keys can access any key in any org
|
||||
return next();
|
||||
}
|
||||
|
||||
if (!resource.orgId) {
|
||||
return next(
|
||||
createHttpError(
|
||||
|
||||
Reference in New Issue
Block a user