Allow using the API when Login required site setting is on.
Merge pull request #1861 from slainer68/login_required_allow_api

Allow to use the API when Login required site setting is on