comp file sharing management: fixed confirmation check

This commit is contained in:
Goffi 2020-06-09 06:23:37 +02:00
commit 47edb01bd3

View file

@ -351,7 +351,7 @@ class FileSharingManagement(object):
else:
# final phase, we'll do deletion here
try:
confirmed = command_form.fields['confirm']
confirmed = C.bool(command_form.fields['confirm'].value)
except KeyError:
self._c.adHocError(self._c.ERROR.BAD_PAYLOAD)
if not confirmed: