Fix permission denied errors for API views.