summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-03-03 16:42:10 +0100
committerJulius Härtl <jus@bitgrid.net>2020-03-03 16:42:10 +0100
commit689c122c65f8148583d57f6bb09441d70e673aae (patch)
tree4a119e9d5288d29d740d8136a70b34f9c667a630
parent11e8ffce886661840316f013c32c308c57c663ec (diff)
downloadnextcloud-server-689c122c65f8148583d57f6bb09441d70e673aae.tar.gz
nextcloud-server-689c122c65f8148583d57f6bb09441d70e673aae.zip
Keep edit permission when updating resharing permission for file shares
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--core/js/sharedialogshareelistview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index 088adaff318..b9683c5f3b3 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -720,7 +720,7 @@
$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;
}
}