Restore URL checking code
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user