changeset 3298:d0e8b0a3ef9c

comp file sharing management: fixed confirmation check
author Goffi <goffi@goffi.org>
date Tue, 09 Jun 2020 06:23:37 +0200
parents 91b5ae058c66
children 83795ff8a633
files sat/plugins/plugin_comp_file_sharing_management.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_file_sharing_management.py	Tue Jun 09 06:23:01 2020 +0200
+++ b/sat/plugins/plugin_comp_file_sharing_management.py	Tue Jun 09 06:23:37 2020 +0200
@@ -351,7 +351,7 @@
         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: