diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-18 13:34:04 +0300 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-07-07 21:21:05 +0300 |
commit | 57688ce6736fc1c24d0bd969a9caf1dd7cc9c799 (patch) | |
tree | 16bcc07c65e06b2edf7ae0f8eeebf36258b21bdc /apps/files | |
parent | 7524f18305a242141f77d4df5f29ac8d78f731c5 (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.js | 2 |
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. |