Properly load permissions in showActions (#15992)
Properly load permissions in showActions
This commit is contained in:
commit
2f86fd604b
|
@ -1803,7 +1803,7 @@
|
||||||
* @return permission value as integer
|
* @return permission value as integer
|
||||||
*/
|
*/
|
||||||
getDirectoryPermissions: function() {
|
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.
|
* Changes the current directory and reload the file list.
|
||||||
|
|
Loading…
Reference in New Issue