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:
authorVinzenz <vinzenz.rosenkranz@gmail.com>2016-08-28 16:29:01 +0300
committerVinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com>2016-08-28 16:34:44 +0300
commit1f4d1c117d4aed8357b82246dbe5f151dcb2eefc (patch)
tree19a4a27e8caf6263113b466e677896a1568d919d /controller
parentb58243c8119b4c357078ddba2766dd0718420ae1 (diff)
allow anonymous polls
Diffstat (limited to 'controller')
-rw-r--r--controller/pagecontroller.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/pagecontroller.php b/controller/pagecontroller.php
index 1105b086..ebbe56e4 100644
--- a/controller/pagecontroller.php
+++ b/controller/pagecontroller.php
@@ -288,7 +288,7 @@ class PageController extends Controller {
* @NoAdminRequired
* @NoCSRFRequired
*/
- public function insertPoll($pollType, $pollTitle, $pollDesc, $userId, $chosenDates, $expireTs, $accessType, $accessValues) {
+ public function insertPoll($pollType, $pollTitle, $pollDesc, $userId, $chosenDates, $expireTs, $accessType, $accessValues, $isAnonymous) {
$event = new Event();
$event->setTitle(htmlspecialchars($pollTitle));
$event->setDescription(htmlspecialchars($pollDesc));
@@ -298,6 +298,7 @@ class PageController extends Controller {
ISecureRandom::CHAR_DIGITS.
ISecureRandom::CHAR_LOWER.
ISecureRandom::CHAR_UPPER));
+ $event->setIsAnonymous($isAnonymous ? '1' : '0');
if ($accessType === 'select') {
if (isset($accessValues)) {