Fixed api_access decorator