@require_POST
@login_required
@permitted
def un_flag_abuse_for_comment(request, course_id, comment_id):
 user = cc.User.from_django_user(request.user)
 course_key = CourseKey.from_string(course_id)
 course = get_course_by_id(course_key)
 remove_all = bool((has_permission(request.user, 'openclose_thread', course_key) or has_access(request.user, 'staff', course)))
 comment = cc.Comment.find(comment_id)
 comment.unFlagAbuse(user, comment, remove_all)
 return JsonResponse(prepare_content(comment.to_dict(), course_key))

@ require_POST @ login_required @ permitted def un_flag_abuse_for_comment ( request , course_id , comment_id ) : user = cc . User . from_django_user ( request . user ) course_key = CourseKey . from_string ( course_id ) course = get_course_by_id ( course_key ) remove_all = bool ( ( has_permission ( request . user , 'openclose_thread' , course_key ) or has_access ( request . user , 'staff' , course ) ) ) comment = cc . Comment . find ( comment_id ) comment . unFlagAbuse ( user , comment , remove_all ) return JsonResponse ( prepare_content ( comment . to_dict ( ) , course_key ) )
given a course_id and comment id .