]> source.dussan.org Git - nextcloud-server.git/commit
Fix mount type root detection
authorVincent Petry <pvince81@owncloud.com>
Mon, 14 Dec 2015 09:44:47 +0000 (10:44 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 14 Dec 2015 09:44:47 +0000 (10:44 +0100)
commit4d9e12b8bcc09a3b75a847523876ad961cab1de3
tree61d390e53a64e3cc313665f46a1e9f360fd9227a
parent74de12c698e01514c8fe42727d98aeaa8956eeee
Fix mount type root detection

Since Webdav doesn't contain that information, we need to rely on the
parent folder's mount type to find out whether a child item is a
shared/external root or not.

Fixed the mount type detection logic and added unit test.

Also added a fix that ignores detection if no parent folder exists (ex:
shared file list, favorites, etc)
apps/files/js/filelist.js
apps/files/tests/js/filelistSpec.js