Skip to content
Snippets Groups Projects
Commit 99c47201 authored by Magnus Giesbert's avatar Magnus Giesbert
Browse files

Only check protocol text against default Etherpad text if `config.ETHERPAD_ACTIVE` is true.

parent 55f30752
Branches
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment