Skip to content

Commit

Permalink
Merge pull request #264 from nextcloud/enh/move_on_firstlogin_transfer
Browse files Browse the repository at this point in the history
On firstlogin filetransfer
  • Loading branch information
rullzer authored Feb 3, 2020
2 parents 3a02b31 + 5f2c005 commit ae8d0f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Guests users can only access files shared to them and can't create any files out
<screenshot>https://raw.githubusercontent.com/nextcloud/guests/master/screenshots/settings.png</screenshot>
<screenshot>https://raw.githubusercontent.com/nextcloud/guests/master/screenshots/dropdown.png</screenshot>
<dependencies>
<nextcloud min-version="18" max-version="18" />
<nextcloud min-version="18" max-version="19" />
</dependencies>
<commands>
<command>OCA\Guests\Command\ListCommand</command>
Expand Down
5 changes: 4 additions & 1 deletion lib/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ public function handleFirstLogin(GenericEvent $event): void {
$ownershipTransferService->transfer(
$guestUser,
$user,
'/'
'/',
null,
true,
true
);
} catch (TransferOwnershipException $e) {
$this->logger->logException($e, [
Expand Down

0 comments on commit ae8d0f8

Please sign in to comment.