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-11-01 12:30:47 +0300
committerdartcafe <github@dartcafe.de>2020-11-01 12:30:47 +0300
commit3be3ca382e41d0d52cc4e79d6584030e5f94e1e8 (patch)
treebc73c49c1b31886d7baf039eb17b0a5d7705a1fc /lib/Model/Contact.php
parent188061b8554aa011dae5a806fb05334cdd28a219 (diff)
fix public vote
Diffstat (limited to 'lib/Model/Contact.php')
-rw-r--r--lib/Model/Contact.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Model/Contact.php b/lib/Model/Contact.php
index 7c177db1..d718595c 100644
--- a/lib/Model/Contact.php
+++ b/lib/Model/Contact.php
@@ -47,6 +47,17 @@ class Contact extends UserGroupClass {
}
/**
+ * getPublicId
+ * must use displayName for contact's user id, because contact id
+ * is not accessable outside the owners's scope
+ * @NoAdminRequired
+ * @return String
+ */
+ public function getPublicId() {
+ return $this->displayName;
+ }
+
+ /**
* isEnabled
* @NoAdminRequired
* @return Boolean