]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix permissions for drag-n-drop uploads 16250/head
authorRobin Appelman <robin@icewind.nl>
Mon, 1 Jul 2019 09:58:13 +0000 (11:58 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Fri, 5 Jul 2019 10:24:20 +0000 (10:24 +0000)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files/js/filelist.js

index 83ac39e18ac00a7a4127ef9d6a2a783d9e3b1e88..4967d0cd5a0cfc8471473553782de3e9b91de5ab 100644 (file)
 
                _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);
                },