Skip to content

Commit

Permalink
fixup! config.php setting to always accept internal shares
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer committed Dec 16, 2019
1 parent d32f201 commit 418237b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ public function handle(Event $event): void {

if ($this->config->getSystemValueBool('sharing.interal_shares_accepted', false)) {
$share = $event->getShare();
$share->setStatus(IShare::STATUS_ACCEPTED);
$this->shareManager->updateShare($share);

if ($share->getShareType() === IShare::TYPE_USER || $share->getShareType() === IShare::TYPE_GROUP) {
$share->setStatus(IShare::STATUS_ACCEPTED);
$this->shareManager->updateShare($share);
}
}
}

Expand Down

0 comments on commit 418237b

Please sign in to comment.