[api] Added condition to see if an anonymous user has been set. If they have, set permissions and return true. IN-6