Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-06-18 13:34:04 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2019-07-07 21:21:05 +0300
commit57688ce6736fc1c24d0bd969a9caf1dd7cc9c799 (patch)
tree16bcc07c65e06b2edf7ae0f8eeebf36258b21bdc /apps/files
parent7524f18305a242141f77d4df5f29ac8d78f731c5 (diff)
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.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 2e3f3e2ebb6..096fe188d19 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1805,7 +1805,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.