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
No related branches found
No related tags found
1 merge request!16Fix errors through config options
...@@ -182,7 +182,7 @@ def parse_protocol_async_inner(protocol): ...@@ -182,7 +182,7 @@ def parse_protocol_async_inner(protocol):
db.session.commit() db.session.commit()
if protocol.source is None or len(protocol.source.strip()) == 0: if protocol.source is None or len(protocol.source.strip()) == 0:
return _make_error(protocol, "Parsing", "Protocol source is empty", "") 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( return _make_error(
protocol, "Parsing", "The etherpad is unmodified and does not " protocol, "Parsing", "The etherpad is unmodified and does not "
"contain a protocol.", protocol.source) "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