diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-18 12:34:04 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-07-05 12:21:21 +0200 |
commit | 51683fa9d1c44e1ce273d87acf6eaddf73b83bcf (patch) | |
tree | 9f810b69c6da08639ef67e282545b9c980093c11 /apps | |
parent | d4218da590487addc0fb0ddb12e318bd02243e91 (diff) | |
download | nextcloud-server-51683fa9d1c44e1ce273d87acf6eaddf73b83bcf.tar.gz nextcloud-server-51683fa9d1c44e1ce273d87acf6eaddf73b83bcf.zip |
Properly load permissions in showActions
When setViewerMode(false) is called, the permissions should be fetched from the available dirInfo
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-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. |