Commit c17e1bdf authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1370 Recognize Public root as root folder.

Released under the Affero GNU General Public License (AGPL) version 3.
parent ca33d2c5
...@@ -994,7 +994,7 @@ class MAPIProvider { ...@@ -994,7 +994,7 @@ class MAPIProvider {
$folderOrigin = DeviceManager::FLD_ORIGIN_IMPERSONATED; $folderOrigin = DeviceManager::FLD_ORIGIN_IMPERSONATED;
} }
$folder->serverid = ZPush::GetDeviceManager()->GetFolderIdForBackendId($folder->BackendId, true, $folderOrigin, $folderprops[PR_DISPLAY_NAME]); $folder->serverid = ZPush::GetDeviceManager()->GetFolderIdForBackendId($folder->BackendId, true, $folderOrigin, $folderprops[PR_DISPLAY_NAME]);
if($folderprops[PR_PARENT_ENTRYID] == $storeprops[PR_IPM_SUBTREE_ENTRYID]) { if($folderprops[PR_PARENT_ENTRYID] == $storeprops[PR_IPM_SUBTREE_ENTRYID] || $folderprops[PR_PARENT_ENTRYID] == $storeprops[PR_IPM_PUBLIC_FOLDERS_ENTRYID]) {
$folder->parentid = "0"; $folder->parentid = "0";
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment