소스 검색

Merge pull request #72 from ChlodAlejandro/main

Only enforce login on action=search
pull/73/head
Ben Kurtovic 3 주 전
committed by GitHub
부모
커밋
6aaa7a236b
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      src/copyvios/checker.py

+ 2
- 1
src/copyvios/checker.py 파일 보기

@@ -56,7 +56,8 @@ def do_check(query: CheckQuery) -> CopyvioCheckResult | None:
is_logged_in = _get_username() is not None is_logged_in = _get_username() is not None
config_bypass = current_app.config.get("COPYVIOS_BYPASS_LOGIN", False) config_bypass = current_app.config.get("COPYVIOS_BYPASS_LOGIN", False)
if ( if (
query.use_engine
query.action == "search"
and query.use_engine
and not is_logged_in and not is_logged_in
and not isinstance(query, APIQuery) and not isinstance(query, APIQuery)
and not config_bypass and not config_bypass


불러오는 중...
취소
저장