Added code to hide dev environments from api unless logged in