Skip to content

Commit

Permalink
fix change permission on mail shares of folders
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Dec 6, 2016
1 parent db6359d commit 9c24942
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/js/sharedialogshareelistview.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,9 @@
checked = numberChecked > 0;
$('input[name="edit"]', $li).prop('checked', checked);
}
} else {
if ($element.attr('name') === 'edit' && $element.is(':checked')) {
permissions |= OC.PERMISSION_UPDATE;
}
}
if ($element.attr('name') === 'edit' && $element.is(':checked')) {
permissions |= OC.PERMISSION_UPDATE;
}

$('.permissions', $li).not('input[name="edit"]').filter(':checked').each(function(index, checkbox) {
Expand Down

0 comments on commit 9c24942

Please sign in to comment.