fix post save hook for classroom permissions
fix cascading delete problem