Skip to content

[stable29] fix: Apply checks on shares in the middleware - #6488

Merged
provokateurin merged 1 commit into
stable29from
backport/6485/stable29
Oct 1, 2024
Merged

[stable29] fix: Apply checks on shares in the middleware#6488
provokateurin merged 1 commit into
stable29from
backport/6485/stable29

Conversation

@backportbot

@backportbotbackportbotBot commented Oct 1, 2024

Copy link
Copy Markdown

Backport of #6485

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud
max-nextcloud marked this pull request as ready for review October 1, 2024 20:01
Comment on lines -119 to +122
if (count($this->rootFolder->getUserFolder($userId)->getById($documentId)) === 0) {
if ($this->rootFolder->getUserFolder($userId)->getFirstNodeById($documentId) === null) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Originally from #5933 - included here for consistency (we also use getFirstNodeById below).

@provokateurin
provokateurin merged commit a7e2022 into stable29Oct 1, 2024
@provokateurin
provokateurin deleted the backport/6485/stable29 branch October 1, 2024 20:41
@AltahrimAltahrim mentioned this pull request Oct 2, 2024
1 task
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@provokateurin@max-nextcloud@juliusknorr