X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/7f4982393567a5f6827c12a089363d91338f9f13..13bee2f2e6aea2d936909861f3ab60bb09821a60:/forum/views/commands.py?ds=sidebyside diff --git a/forum/views/commands.py b/forum/views/commands.py index 11818ec..3d2f9d3 100644 --- a/forum/views/commands.py +++ b/forum/views/commands.py @@ -580,20 +580,3 @@ def answer_permanent_link(request, id): # Display the template return render_to_response('node/permanent_link.html', { 'url' : url, }) - -@decorate.withfn(command) -def award_points(request, user_id, answer_id): - user = request.user - awarded_user = get_object_or_404(User, id=user_id) - - # Users shouldn't be able to award themselves - if awarded_user.id == user.id: - raise CannotDoOnOwnException(_("award")) - - # Anonymous users cannot award points, they just don't have such - if not user.is_authenticated(): - raise AnonymousNotAllowedException(_('award')) - - return render_to_response("node/award_points.html", { 'user' : user, 'awarded_user' : awarded_user, }) - # Display the template - return render_to_response('node/permanent_link.html', { 'url' : url, })