diff options
author | dartcafe <github@dartcafe.de> | 2020-01-23 08:48:56 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-01-23 08:48:56 +0300 |
commit | acbc11a1cb7e3d51435e63982d4bb52c5fca8c4b (patch) | |
tree | 09f28b2e3e36709486e482410cd2c95730754739 | |
parent | 2a3799e730ef338cad48222f31202956d59cfd63 (diff) |
fix create personal share for public userv1.1.3-RC
-rw-r--r-- | lib/Controller/ShareController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Controller/ShareController.php b/lib/Controller/ShareController.php index e24ac535..907a0578 100644 --- a/lib/Controller/ShareController.php +++ b/lib/Controller/ShareController.php @@ -199,12 +199,14 @@ class ShareController extends Controller { $userShare->setType('external'); $userShare->setUserId($userName); - + $newShare->setUser(''); } elseif ($userShare->getType() === 'public') { $userShare->setType('external'); $userShare->setPollId(intval($userShare->getPollId())); $userShare->setUserId($userName); + $userShare->setUserEmail(''); + $userShare->setUser(''); $userShare->setToken(\OC::$server->getSecureRandom()->generate( 16, ISecureRandom::CHAR_DIGITS . |