Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
2694a7d4
Commit
2694a7d4
authored
Dec 23, 2016
by
Daniel W Bond
Browse files
my tests caught something
parent
8b5c1549
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/views.py
View file @
2694a7d4
...
...
@@ -566,8 +566,8 @@ class DeleteConfirmation(LoginRequiredMixin, DeleteView):
current_url
=
self
.
request
.
get_full_path
()
confirmer_uname
=
current_url
.
split
(
'/'
)[
3
]
# not catching exceptions here; that's handled in get_object
confirmer
=
Student
.
objects
.
get
(
user__username
=
confirmer_uname
)
# only the person who created the confirmation may delete it
if
not
(
requester
==
confirmer
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment