Преглед на файлове

If the initiator no longer exists return UID

It can happen that the share initiator is deleted. Because of the new
resharing behaviour this share then still exists. We just can fetch the
displayname properly.
tags/v9.0.0beta2
Roeland Jago Douma преди 8 години
родител
ревизия
0a33cdee0c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      apps/files_sharing/api/share20ocs.php

+ 1
- 1
apps/files_sharing/api/share20ocs.php Целия файл

@@ -91,7 +91,7 @@ class Share20OCS {
'id' => $share->getId(),
'share_type' => $share->getShareType(),
'uid_owner' => $share->getSharedBy(),
'displayname_owner' => $sharedBy->getDisplayName(),
'displayname_owner' => $sharedBy !== null ? $sharedBy->getDisplayName() : $share->getSharedBy(),
'permissions' => $share->getPermissions(),
'stime' => $share->getShareTime()->getTimestamp(),
'parent' => null,

Loading…
Отказ
Запис