From: Robin Appelman Date: Mon, 1 Jul 2019 09:58:13 +0000 (+0200) Subject: fix permissions for drag-n-drop uploads X-Git-Tag: v15.0.10~4^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=76f5a2312856fce086583142d77b3b8e70210828;p=nextcloud-server.git fix permissions for drag-n-drop uploads Signed-off-by: Robin Appelman --- diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 83ac39e18ac..4967d0cd5a0 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2079,7 +2079,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); },