forked from GithubBackups/healthchecks
comment
This commit is contained in:
parent
01a9505cc7
commit
625d2cf298
@ -336,6 +336,7 @@ def verify_email(request, code, token):
|
||||
def remove_channel(request, code):
|
||||
assert request.method == "POST"
|
||||
|
||||
# user may refresh the page during POST and cause two deletion attempts
|
||||
channel = Channel.objects.filter(code=code).first()
|
||||
if channel:
|
||||
if channel.user != request.user:
|
||||
|
Loading…
x
Reference in New Issue
Block a user