]> source.dussan.org Git - nextcloud-server.git/commitdiff
Keep edit permission when updating resharing permission for file shares
authorJulius Härtl <jus@bitgrid.net>
Tue, 3 Mar 2020 15:42:10 +0000 (16:42 +0100)
committerJulius Härtl <jus@bitgrid.net>
Thu, 5 Mar 2020 17:17:33 +0000 (18:17 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/js/sharedialogshareelistview.js

index 81326cdb6cc420229551b415ac5a9b6888e725c4..4d3967e29610c99fd174223c7240257d1e105068 100644 (file)
                                        $editCb.prop('indeterminate', !checked && numberChecked > 0);
                                }
                        } else {
-                               if ($element.attr('name') === 'edit' && $element.is(':checked')) {
+                               if ($('input[name="edit"]', $li).is(':checked')) {
                                        permissions |= OC.PERMISSION_UPDATE;
                                }
                        }