From 76f5a2312856fce086583142d77b3b8e70210828 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 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); }, -- 2.39.5