summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2019-07-07 20:20:09 +0200
committerGitHub <noreply@github.com>2019-07-07 20:20:09 +0200
commit2f86fd604b4126cad694a8d4fe02f1d6b29a93e2 (patch)
tree089100ea4469543071d7681d9b4d1e2604df930b /apps/files
parent65abdea3306ef27c4ce9b1c2480bea05dd105138 (diff)
parent51683fa9d1c44e1ce273d87acf6eaddf73b83bcf (diff)
downloadnextcloud-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.js2
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.