Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <github@dartcafe.de>
  • Loading branch information
dartcafe committed Sep 6, 2023
1 parent 77568fe commit 8916899
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Service/ShareService.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ public function listNotInvited(int $pollId): array {

/**
* Get share by token for accessing the poll
*
*
* @param string $token Token of share to get
* @param bool $validateShareType Set true, if the share should be validated for usage
* @param bool $publicRequest Set true, to avoid preset displayname of public shares
* @param bool $publicRequest Set true, to avoid preset displayname of public shares
*/
public function get(string $token, bool $validateShareType = false, bool $publicRequest = false): Share {
$this->share = $this->shareMapper->findByToken($token);
Expand All @@ -130,7 +130,7 @@ public function get(string $token, bool $validateShareType = false, bool $public
// deletes the displayname, to avoid displayname preset in case of public polls
if ($this->share->getType() === Share::TYPE_PUBLIC && $publicRequest) {
$this->share->setDisplayName('');
}
}

// Exception: logged in user accesses the poll via public share link
if ($this->share->getType() === Share::TYPE_PUBLIC && $this->userSession->isLoggedIn()) {
Expand Down

0 comments on commit 8916899

Please sign in to comment.