diff --git a/qswiki.cpp b/qswiki.cpp index 682453a..78521b6 100644 --- a/qswiki.cpp +++ b/qswiki.cpp @@ -95,7 +95,7 @@ int main(int argc, char **argv) { throw std::runtime_error("No such anon user in database"); } - if(!anon->enabled) + if(anon->enabled) { throw std::runtime_error("Anon user cannot be enabled"); }