Merge pull request #16283 from nextcloud/backport/15992/stable15

[stable15] Properly load permissions in showActions
This commit is contained in:
Morris Jobke 2019-07-08 10:32:48 +02:00 committed by GitHub
commit e7ee019dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.