we should check if a user is logged in before we check for admin privilege
Merge pull request #5642 from owncloud/fixing-5271-master

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