diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-18 12:34:04 +0200 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-07-07 18:21:55 +0000 |
commit | 3c4f11a9101a7bd83d1524ee90e5760d985e53a8 (patch) | |
tree | 2246a5222b827460df0b3c6952cc335d6b41a8b7 /apps/files | |
parent | 27eacbafe62692a04773310d6d7817165ad58103 (diff) | |
download | nextcloud-server-3c4f11a9101a7bd83d1524ee90e5760d985e53a8.tar.gz nextcloud-server-3c4f11a9101a7bd83d1524ee90e5760d985e53a8.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/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 4967d0cd5a0..3945877b428 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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. |