From 1a16ede0b23e78ca64b5b48f5ed61eeb16529623 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 1 Jul 2019 11:58:13 +0200 Subject: [PATCH] fix permissions for drag-n-drop uploads Signed-off-by: Robin Appelman --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 2e3f3e2ebb..becaa5ecb3 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2191,7 +2191,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); },