Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-10-23 13:56:57 +0300
committerdartcafe <github@dartcafe.de>2020-10-23 13:56:57 +0300
commitd2ca2c875c6f3be3691199e0832e7cd29f5a93c6 (patch)
treee6bb2c4a314284709d6a1e89e17855a23a80d018 /lib/Controller/ShareController.php
parentd721ef12277a220b3e23e362336c8088b8bf6552 (diff)
$emailAddress not used anymore
Diffstat (limited to 'lib/Controller/ShareController.php')
-rw-r--r--lib/Controller/ShareController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ShareController.php b/lib/Controller/ShareController.php
index 0469945e..a7c34c59 100644
--- a/lib/Controller/ShareController.php
+++ b/lib/Controller/ShareController.php
@@ -100,9 +100,9 @@ class ShareController extends Controller {
* @param string $userEmail
* @return DataResponse
*/
- public function add($pollId, $type, $userId = '', $emailAddress = '') {
+ public function add($pollId, $type, $userId = '') {
try {
- return new DataResponse(['share' => $this->shareService->add($pollId, $type, $userId, $emailAddress)], Http::STATUS_CREATED);
+ return new DataResponse(['share' => $this->shareService->add($pollId, $type, $userId)], Http::STATUS_CREATED);
} catch (NotAuthorizedException $e) {
return new DataResponse(['error' => $e->getMessage()], $e->getStatus());
} catch (ShareAlreadyExists $e) {