diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2019-07-07 20:20:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-07 20:20:09 +0200 |
commit | 2f86fd604b4126cad694a8d4fe02f1d6b29a93e2 (patch) | |
tree | 089100ea4469543071d7681d9b4d1e2604df930b /apps/files | |
parent | 65abdea3306ef27c4ce9b1c2480bea05dd105138 (diff) | |
parent | 51683fa9d1c44e1ce273d87acf6eaddf73b83bcf (diff) | |
download | nextcloud-server-2f86fd604b4126cad694a8d4fe02f1d6b29a93e2.tar.gz nextcloud-server-2f86fd604b4126cad694a8d4fe02f1d6b29a93e2.zip |
Properly load permissions in showActions (#15992)
Properly load permissions in showActions
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 753b546b69d..bfaee261b11 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1803,7 +1803,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. |