Merge pull request #16249 from nextcloud/backport/16170/stable16
[stable16] fix permissions for drag-n-drop uploads
This commit is contained in:
commit
6e319dd4db
|
@ -2191,7 +2191,7 @@
|
||||||
|
|
||||||
_updateDirectoryPermissions: function() {
|
_updateDirectoryPermissions: function() {
|
||||||
var isCreatable = (this.dirInfo.permissions & OC.PERMISSION_CREATE) !== 0 && this.$el.find('#free_space').val() !== '0';
|
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('.creatable').toggleClass('hidden', !isCreatable);
|
||||||
this.$el.find('.notCreatable').toggleClass('hidden', isCreatable);
|
this.$el.find('.notCreatable').toggleClass('hidden', isCreatable);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue