Restore URL checking code

This commit is contained in:
Devin Binnie 2023-03-02 16:43:55 -05:00
parent a52e96694d
commit 5342507954

View file

@ -98,6 +98,12 @@ function isAdminUrl(serverUrl: URL | string, inputURL: URL | string) {
}
function isTeamUrl(serverUrl: URL | string, inputURL: URL | string, withApi?: boolean) {
const parsedURL = parseURL(inputURL);
const server = getServerInfo(serverUrl);
if (!parsedURL || !server || (!equalUrlsIgnoringSubpath(server.url, parsedURL))) {
return false;
}
const paths = [...getManagedResources(), ...nonTeamUrlPaths];
if (withApi) {