mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 02:31:33 -04:00
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>
This commit is contained in:
parent
27eacbafe6
commit
3c4f11a910
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue