diff options
author | dartcafe <github@dartcafe.de> | 2021-11-25 22:45:10 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-11-26 11:23:44 +0300 |
commit | 7d3c355284747e47493264d4e25c7f8f1b3807ad (patch) | |
tree | 14560537f70a1c3e358a154ade8df5f53a63732c /lib/Controller/ShareController.php | |
parent | cee82690e7aac4c7c98b50879c79752308ee728f (diff) |
make email registration a per public share option
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib/Controller/ShareController.php')
-rw-r--r-- | lib/Controller/ShareController.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Controller/ShareController.php b/lib/Controller/ShareController.php index d272bba3..b0494f2e 100644 --- a/lib/Controller/ShareController.php +++ b/lib/Controller/ShareController.php @@ -96,6 +96,16 @@ class ShareController extends Controller { } /** + * Convert user to poll admin + * @NoAdminRequired + */ + public function setPublicPollEmail(string $token, string $value): DataResponse { + return $this->response(function () use ($token, $value) { + return ['share' => $this->shareService->setPublicPollEmail($token, $value)]; + }); + } + + /** * Convert poll admin to user * @NoAdminRequired */ |