[Fix bug 840686] Fix API authentication in logged in user queries
Merge pull request #346 from johngian/840686

[Fix bug 840686] Fix API authentication in logged in user queries