we should check if a user is logged in before we check for admin privile...

...ge

fixes #5271 

@pwinnick - can you test this patch? THX
@mdsitton - thanks for the access to your system - much appreciated!

The usual reviewer summoning @karlitschek @bantu @VicDeo @PVince81 THX

@karlitschek feels like it's getting time to push 5.0.13 :wink: