summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-07-01 11:58:13 +0200
committerRobin Appelman <robin@icewind.nl>2019-07-01 11:58:13 +0200
commit258902b33715e9185235d4288e1933fec5d118c8 (patch)
treedb9dae471167564e2eedd84bb66956845421df05
parent7fbfa5cd99dca4260e7b819a2157f0421955ed10 (diff)
downloadnextcloud-server-258902b33715e9185235d4288e1933fec5d118c8.tar.gz
nextcloud-server-258902b33715e9185235d4288e1933fec5d118c8.zip
fix permissions for drag-n-drop uploads
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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);
},