Commit 56f45944 authored by Manfred Kutas's avatar Manfred Kutas

ZP-994 On missing permissions WebserviceInfo->ListUserFolders() returns

own folders.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 4ed559d3
......@@ -57,6 +57,7 @@ class WebserviceInfo {
$hasRights = ZPush::GetBackend()->Setup($user);
ZLog::Write(LOGLEVEL_INFO, sprintf("WebserviceInfo::ListUserFolders(): permissions to open store '%s': %s", $user, Utils::PrintAsString($hasRights)));
if ($hasRights) {
$folders = ZPush::GetBackend()->GetHierarchy();
ZPush::GetTopCollector()->AnnounceInformation(sprintf("Retrieved details of %d folders", count($folders)), true);
......@@ -65,6 +66,7 @@ class WebserviceInfo {
unset($folder->Store, $folder->flags, $folder->content, $folder->NoBackendFolder);
$output[] = $folder;
}
}
return $output;
}
......
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