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
path: root/lib
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-08-17 18:41:53 +0300
committerdartcafe <github@dartcafe.de>2020-08-17 18:41:53 +0300
commit2a1cfd2ad456769dbf8d8d6a72ef8d3ae070d2a3 (patch)
treec6491214860d54feb78bedb5ef9ebdff9a2bf632 /lib
parent2778e299a90640e29f0c4fac40ef86314c5f729e (diff)
removed loggings
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/ShareController.php1
-rw-r--r--lib/Service/ShareService.php2
-rw-r--r--lib/Service/SubscriptionService.php2
-rw-r--r--lib/Service/SystemService.php1
4 files changed, 0 insertions, 6 deletions
diff --git a/lib/Controller/ShareController.php b/lib/Controller/ShareController.php
index 9c566214..a009150e 100644
--- a/lib/Controller/ShareController.php
+++ b/lib/Controller/ShareController.php
@@ -200,7 +200,6 @@ class ShareController extends Controller {
$shares = [];
try {
$share = $this->shareService->get($token);
- \OC::$server->getLogger()->alert('Suche nach Gruppe: ' . $share->getUserId());
foreach ($this->systemService->getContactsGroupMembers($share->getUserId()) as $member) {
$shares[] = $this->shareService->add($share->getpollId(), 'contact', $member['user'], $member['emailAddress']) ;
}
diff --git a/lib/Service/ShareService.php b/lib/Service/ShareService.php
index af069d6e..83b20dda 100644
--- a/lib/Service/ShareService.php
+++ b/lib/Service/ShareService.php
@@ -117,8 +117,6 @@ class ShareService {
* @throws NotAuthorizedException
*/
public function add($pollId, $type, $userId, $userEmail = '') {
- \OC::$server->getLogger()->alert('==== Start ');
-
if (!$this->acl->set($pollId)->getAllowEdit()) {
throw new NotAuthorizedException;
}
diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php
index 8678817e..9c3f1855 100644
--- a/lib/Service/SubscriptionService.php
+++ b/lib/Service/SubscriptionService.php
@@ -82,8 +82,6 @@ class SubscriptionService {
*/
public function set($pollId, $token, $subscribed) {
if (!$this->acl->set($pollId, $token)->getAllowView()) {
- \OC::$server->getLogger()->alert('Share token: ' . $token);
- \OC::$server->getLogger()->alert('Share PollId: ' . $pollId);
throw new NotAuthorizedException;
}
try {
diff --git a/lib/Service/SystemService.php b/lib/Service/SystemService.php
index dbc37c3f..6f49bbcc 100644
--- a/lib/Service/SystemService.php
+++ b/lib/Service/SystemService.php
@@ -200,7 +200,6 @@ class SystemService {
*/
public function getContactsGroupMembers($query = '') {
$contacts = array();
- \OC::$server->getLogger()->alert('Suche nach Gruppe: ' . $query);
foreach (\OC::$server->getContactsManager()->search($query, array('CATEGORIES')) as $contact) {
if (
!array_key_exists('isLocalSystemBook', $contact)