]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/templatetags/node_tags.py
Users should be warned before getting their karma points decreased to certain values...
[osqa.git] / forum / templatetags / node_tags.py
index 2bc3c4bd417ddee0686158f65fee142728ba6743..9e0482fa34e4aa44b88d948b719182ba00955eb9 100644 (file)
@@ -105,7 +105,7 @@ def post_controls(post, user):
                                      title=_("answer permanent link"), command=True, withprompt=True, copy=True))\r
 \r
         # Users should be able to award points for an answer. Users cannot award their own answers\r
-        if user != post.author and user.is_authenticated():\r
+        if user != post.author and user.is_authenticated() and user.reputation > 1:\r
             controls.append(post_control(_("award points"), reverse('award_points', kwargs={'user_id' : post.author.id,\r
                                          'answer_id' : post.id}), title=_("award points to %s") % smart_unicode(post.author.username),\r
                                          command=True, withprompt=True))\r