Skip to content

Commit 5a7a0a2

Browse files
authored
Merge pull request #23583 from nextcloud/backport/23580/stable20
[stable20] Also expire share type email
2 parents 2d3a2e2 + 2aa69ba commit 5a7a0a2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/files_sharing/lib/ExpireSharesJob.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ public function run($argument) {
6060
->from('share')
6161
->where(
6262
$qb->expr()->andX(
63-
$qb->expr()->eq('share_type', $qb->expr()->literal(IShare::TYPE_LINK)),
63+
$qb->expr()->orX(
64+
$qb->expr()->eq('share_type', $qb->expr()->literal(IShare::TYPE_LINK)),
65+
$qb->expr()->eq('share_type', $qb->expr()->literal(IShare::TYPE_EMAIL))
66+
),
6467
$qb->expr()->lte('expiration', $qb->expr()->literal($now)),
6568
$qb->expr()->orX(
6669
$qb->expr()->eq('item_type', $qb->expr()->literal('file')),

0 commit comments

Comments
 (0)