Merge pull request #16283 from nextcloud/backport/15992/stable15
[stable15] Properly load permissions in showActions
This commit is contained in:
commit
e7ee019dbf
|
@ -1692,7 +1692,7 @@
|
|||
* @return permission value as integer
|
||||
*/
|
||||
getDirectoryPermissions: function() {
|
||||
return parseInt(this.$el.find('#permissions').val(), 10);
|
||||
return this && this.dirInfo && this.dirInfo.permissions ? this.dirInfo.permissions : parseInt(this.$el.find('#permissions').val(), 10);
|
||||
},
|
||||
/**
|
||||
* Changes the current directory and reload the file list.
|
||||
|
|
Loading…
Reference in New Issue