SA taken to court by civil society groups