summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-07-01 15:23:47 +0200
committerGitHub <noreply@github.com>2019-07-01 15:23:47 +0200
commitae4ae0d3d063663fb66826f5dc155245b28456ae (patch)
treef9c0a6137ac7b24e75b2587ea8667cf9bfd5316a
parent1074e9838b508aacaac8e8d49f9506d68402dafa (diff)
parent258902b33715e9185235d4288e1933fec5d118c8 (diff)
downloadnextcloud-server-ae4ae0d3d063663fb66826f5dc155245b28456ae.tar.gz
nextcloud-server-ae4ae0d3d063663fb66826f5dc155245b28456ae.zip
Merge pull request #16170 from nextcloud/dnd-upload-permissions
fix permissions for drag-n-drop uploads
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 22b5a82326a..753b546b69d 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2189,7 +2189,7 @@
_updateDirectoryPermissions: function() {
var isCreatable = (this.dirInfo.permissions & OC.PERMISSION_CREATE) !== 0 && this.$el.find('#free_space').val() !== '0';
- this.$el.find('#permissions').val(permissions);
+ this.$el.find('#permissions').val(this.dirInfo.permissions);
this.$el.find('.creatable').toggleClass('hidden', !isCreatable);
this.$el.find('.notCreatable').toggleClass('hidden', isCreatable);
},