add back comment response flagging

This commit is contained in:
Kevin Chugh
2013-04-05 19:04:18 -04:00
parent de7c511328
commit 24095679a6
4 changed files with 12 additions and 3 deletions

View File

@@ -309,8 +309,9 @@ def flag_abuse_for_comment(request, course_id, comment_id):
def un_flag_abuse_for_comment(request, course_id, comment_id):
user = cc.User.from_django_user(request.user)
removeAll = cached_has_permission(request.user, 'openclose_thread', course_id)
comment = cc.Comment.find(comment_id)
comment.unFlagAbuse(user,comment)
comment.unFlagAbuse(user,comment, removeAll)
return JsonResponse(utils.safe_content(comment.to_dict()))
@require_POST