Skip to content

Commit

Permalink
dont fail hard when a user doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Nov 13, 2014
1 parent 2124297 commit 333f69e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/files_sharing/lib/mountmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ function __construct(Manager $mountManager, Loader $storageLoader, IUserManager
public function setupMounts($options) {
/** @var \OCP\IUser $user */
$user = $options['user_object'];
if (!$user) {
return;
}
$shares = \OCP\Share::getItemsSharedWithUser('file', $user->getUID());
foreach ($shares as $share) {
$owner = $this->userManager->get($share['uid_owner']);
Expand Down

0 comments on commit 333f69e

Please sign in to comment.