calling getstoragestats.php only if a user is logged in because this call requires a user to be logged in
Merge pull request #5699 from owncloud/fixing-4606-master

calling getstoragestats.php only if a user is logged in because this cal...