From fe362bb278fec529d22e45f6559fbf4718cd6058 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Fri, 3 May 2013 11:07:36 -0700 Subject: [PATCH] Don't show challenge/PM buttons for yourself There are various obscure situations where you might want to for testing, so doing so isn't banned server-side, but it's banned client- side where it's more likely to be a misclick than anything else. --- js/client.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/client.js b/js/client.js index bf82b0e29..79e9a5748 100644 --- a/js/client.js +++ b/js/client.js @@ -1126,7 +1126,11 @@ } buf += ''; - buf += '
'; + if (userid === app.user.get('userid')) { + buf += '
'; + } else { + buf += '
'; + } this.$el.html(buf); },