From 99c47201dc1c185d9e2dccd344aa865bf259f685 Mon Sep 17 00:00:00 2001
From: Magnus Giesbert <magnus@fsmpi.rwth-aachen.de>
Date: Wed, 2 Feb 2022 03:25:54 +0100
Subject: [PATCH] Only check protocol text against default Etherpad text if
 `config.ETHERPAD_ACTIVE` is true.

---
 tasks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tasks.py b/tasks.py
index d10295f..02cd57f 100644
--- a/tasks.py
+++ b/tasks.py
@@ -182,7 +182,7 @@ def parse_protocol_async_inner(protocol):
     db.session.commit()
     if protocol.source is None or len(protocol.source.strip()) == 0:
         return _make_error(protocol, "Parsing", "Protocol source is empty", "")
-    if protocol.source == config.EMPTY_ETHERPAD:
+    if config.ETHERPAD_ACTIVE and protocol.source == config.EMPTY_ETHERPAD:
         return _make_error(
             protocol, "Parsing", "The etherpad is unmodified and does not "
             "contain a protocol.", protocol.source)
-- 
GitLab