Skip to content

Commit 5a5281f

Browse files
committed
Account paths match in any letter case
1 parent c58c737 commit 5a5281f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎skool_api_mcp/core/account_guard.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def check_account_write(method: str, url: str) -> None:
2626
if method.upper() in _READS:
2727
return
2828
path = urlsplit(url).path.lower()
29-
if _COMMON.search(path) or any(re.search(pattern, path) for pattern in app.ACCOUNT_PATHS):
29+
if _COMMON.search(path) or any(re.search(pattern, path, re.IGNORECASE) for pattern in app.ACCOUNT_PATHS):
3030
raise ToolError(
3131
"This server never changes account settings in the app (password, email, sign-in, profile).",
3232
ErrorCode.SCOPE_DENIED,

0 commit comments

Comments
 (0)