From b751e0ba9280192978f498332fdbb1839c0e462c Mon Sep 17 00:00:00 2001 From: Albert S Date: Fri, 3 May 2019 23:26:08 +0200 Subject: [PATCH] Fixed: inverted boolean in check for enabled anon user --- qswiki.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qswiki.cpp b/qswiki.cpp index b287a77..56b9051 100644 --- a/qswiki.cpp +++ b/qswiki.cpp @@ -94,7 +94,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"); }