]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix permissions for drag-n-drop uploads 16249/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:23:47 +0000 (10:23 +0000)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files/js/filelist.js

index 2e3f3e2ebb62aca928ed920f2b8fadfbb0ad6aaf..becaa5ecb34c89a492bfab71cae656ba127d5b17 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);
                },