mirror of
https://github.com/outline/outline.git
synced 2026-05-08 02:50:30 -05:00
fix: Path with query string does not work with scope restrictions, closes #8489
This commit is contained in:
@@ -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(".");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user