it's a variant of "I don't know, can you?" the teacher doesn't know if the student is physically able to use the restroom, but the student was only asking if it was okay with the teacher.. so yeah... :P