we should check if a user is logged in before we check for admin privilege
call \OC_Util::checkLoggedIn() on checkSubAdminUser() as well
Merge pull request #5574 from owncloud/fixing-5271-stable5

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