Fix root API key access in verifyApiKeyAccessTokenAccess

This commit is contained in:
moverq1337
2026-08-28 22:45:31 +03:00
parent 49dcc590ce
commit 1650ece0c3
@@ -68,6 +68,11 @@ export async function verifyApiKeyAccessTokenAccess(
);
}
if (apiKey.isRoot) {
// Root keys can access any access token in any org
return next();
}
if (!resource.orgId) {
return next(
createHttpError(