Restore URL checking code
This commit is contained in:
parent
a52e96694d
commit
5342507954
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue