summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@owncloud.com>2016-01-15 16:52:51 +0000
committerRobin McCorkell <rmccorkell@owncloud.com>2016-01-15 16:52:51 +0000
commita49aff2db79aa5913ce000f6752e9347d170a63f (patch)
treefe0ae0da5336c7b968490804428fdb4c9d327ff3 /apps/files/js
parentfcec704174a384f93214a1f2b83bed385e763ff6 (diff)
downloadnextcloud-server-a49aff2db79aa5913ce000f6752e9347d170a63f.tar.gz
nextcloud-server-a49aff2db79aa5913ce000f6752e9347d170a63f.zip
Only check selection for delete permissions, not parent folder
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index d0c7687e5b6..35999b5d0ee 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2305,7 +2305,6 @@
*/
updateSelectionSummary: function() {
var summary = this._selectionSummary.summary;
- var canDelete;
var selection;
if (summary.totalFiles === 0 && summary.totalDirs === 0) {
@@ -2316,7 +2315,6 @@
this.$el.find('.selectedActions').addClass('hidden');
}
else {
- canDelete = (this.getDirectoryPermissions() & OC.PERMISSION_DELETE) && this.isSelectedDeletable();
this.$el.find('.selectedActions').removeClass('hidden');
this.$el.find('#headerSize a>span:first').text(OC.Util.humanFileSize(summary.totalSize));
@@ -2338,7 +2336,7 @@
this.$el.find('#headerName a.name>span:first').text(selection);
this.$el.find('#modified a>span:first').text('');
this.$el.find('table').addClass('multiselect');
- this.$el.find('.delete-selected').toggleClass('hidden', !canDelete);
+ this.$el.find('.delete-selected').toggleClass('hidden', !this.isSelectedDeletable());
}
},