]> 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>
Tue, 3 Mar 2020 15:42:10 +0000 (16:42 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/js/sharedialogshareelistview.js

index 088adaff318a9c0b193ce5c41506b01e1b44fcb4..b9683c5f3b3a20070569c57cfd994a3ea8245c8d 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;
                                }
                        }