Don't allow NO_AUTH to be anything

This commit is contained in:
Jakub Kadlčík
2017-03-30 10:51:34 +02:00
parent 9a296ee451
commit 05bdece65a
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ class ModuleBuildAPI(MethodView):
else:
handler = SCMHandler(request)
if conf.no_auth and handler.username == "anonymous" and "owner" in handler.data:
if conf.no_auth is True and handler.username == "anonymous" and "owner" in handler.data:
handler.username = handler.data["owner"]
if conf.allowed_groups and not (conf.allowed_groups & handler.groups):