Kaynağa Gözat

Merge pull request #72 from ChlodAlejandro/main

Only enforce login on action=search
pull/73/head
Ben Kurtovic 3 hafta önce
committed by GitHub
ebeveyn
işleme
6aaa7a236b
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: B5690EEEBB952194
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +2
    -1
      src/copyvios/checker.py

+ 2
- 1
src/copyvios/checker.py Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet