fix: Path with query string does not work with scope restrictions, closes #8489

This commit is contained in:
Tom Moor
2025-02-18 20:16:54 -05:00
parent 1749ffe20d
commit 4cd2ee6291
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -174,6 +174,9 @@ class ApiKey extends ParanoidModel<
return true;
}
// strip any query string from the path
path = path.split("?")[0];
const resource = path.split("/").pop() ?? "";
const [namespace, method] = resource.split(".");