Fixed authentication bypass

Merged Roman Karwacik requested to merge authbypass into master

This should fix the authentication bypass reported by Nils Beyer.

Merge request reports