Merge pull request #16170 from nextcloud/dnd-upload-permissions

fix permissions for drag-n-drop uploads
This commit is contained in:
Robin Appelman 2019-07-01 15:23:47 +02:00 committed by GitHub
commit ae4ae0d3d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2189,7 +2189,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);
},