Skip to content

Commit

Permalink
Sharing reports not possible any more #354
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed May 26, 2023
1 parent fc977aa commit 0348f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/ShareService.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function getSharedReports()
$reports = array();

foreach ($sharedReports as $sharedReport) {
$this->logger->debug('Shareservice: evaluating share: ' . $sharedReport["id"] . ' type ' . $sharedReport['shareType'] . ' for '. $sharedReport['shareUid_owner']);
$this->logger->debug('Shareservice: evaluating share: ' . $sharedReport["shareId"] . ' of report ' . $sharedReport["id"] . ' type ' . $sharedReport['shareType'] . ' for '. $sharedReport['shareUid_owner']);
// shared with a group?
if ($sharedReport['shareType'] === self::SHARE_TYPE_GROUP) {
// is the current user part of this group?
Expand All @@ -165,7 +165,7 @@ public function getSharedReports()
// shared with a user directly?
} elseif ($sharedReport['shareType'] === self::SHARE_TYPE_USER) {
// current user matching?
$this->logger->debug('Shareservice: Type user; check against current user ' . $this->userSession->getUser()->getUID());
$this->logger->debug('Shareservice: Type user; check against current user: ' . $this->userSession->getUser()->getUID());
if ($this->userSession->getUser()->getUID() === $sharedReport['shareUid_owner']) {
// was the report not yet added to the result?
$this->logger->debug('Shareservice: Share belongs to current user');
Expand Down

0 comments on commit 0348f2a

Please sign in to comment.