diff options
author | René Gieling <github@dartcafe.de> | 2021-01-05 01:21:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 01:21:34 +0300 |
commit | f7ef1a927ada7fb9834ec2934297b60889719ad7 (patch) | |
tree | dafcb028920f551bc0607c5e5dcf6bc0529d0164 /lib/Service/ShareService.php | |
parent | 5f3f6f787535e1f1bea56ef35db5c8555a467a1a (diff) | |
parent | 1eaa73b7704b0cd3b55ffa236d2a5eaf46ec56a4 (diff) |
Merge pull request #1321 from nextcloud/fixes
Fixes
Diffstat (limited to 'lib/Service/ShareService.php')
-rw-r--r-- | lib/Service/ShareService.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Service/ShareService.php b/lib/Service/ShareService.php index 3d69cb06..3ed2bcd1 100644 --- a/lib/Service/ShareService.php +++ b/lib/Service/ShareService.php @@ -146,7 +146,7 @@ class ShareService { // Convert user type contact to share type email if ($userGroup->getType() === UserGroupClass::TYPE_CONTACT) { - $this->share->setType(UserGroupClass::TYPE_EMAIL); + $this->share->setType(Share::TYPE_EMAIL); $this->share->setUserId($userGroup->getEmailAddress()); } else { $this->share->setType($userGroup->getType()); @@ -154,7 +154,6 @@ class ShareService { } $this->share->setInvitationSent($preventInvitation ? time() : 0); - $this->share->setType($userGroup->getType()); $this->share->setDisplayName($userGroup->getDisplayName()); $this->share->setEmailAddress($userGroup->getEmailAddress()); |