Browse Source

comment

pull/34/head
Di Wu 9 years ago
parent
commit
625d2cf298
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      hc/front/views.py

+ 1
- 0
hc/front/views.py View File

@ -336,6 +336,7 @@ def verify_email(request, code, token):
def remove_channel(request, code): def remove_channel(request, code):
assert request.method == "POST" assert request.method == "POST"
# user may refresh the page during POST and cause two deletion attempts
channel = Channel.objects.filter(code=code).first() channel = Channel.objects.filter(code=code).first()
if channel: if channel:
if channel.user != request.user: if channel.user != request.user:


Loading…
Cancel
Save