-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[stable26] Check share status when touching versions #43739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/compile amend / |
| // The version source file is relative to the owner storage. | ||
| // But we need the node from the current user perspective. | ||
| if ($node->getOwner()->getUID() !== $currentUserId) { | ||
| $nodes = $this->userFolder->getById($node->getId()); |
Check notice
Code scanning / Psalm
PossiblyNullReference
| // The version source file is relative to the owner storage. | ||
| // But we need the node from the current user perspective. | ||
| if ($node->getOwner()->getUID() !== $currentUserId) { | ||
| $nodes = $this->userFolder->getById($node->getId()); |
Check notice
Code scanning / Psalm
PossiblyNullArgument
|
psalm says no |
8889779 to
216c94c
Compare
Signed-off-by: Louis Chemineau <[email protected]>
216c94c to
38302dc
Compare
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
38302dc to
1d84ff3
Compare
| throw new NotFoundException("No user logged in"); | ||
| } | ||
|
|
||
| if ($sourceFile->getOwner()?->getUID() !== $currentUserId) { |
Check notice
Code scanning / Psalm
DocblockTypeContradiction
| throw new NotFoundException("No user logged in"); | ||
| } | ||
|
|
||
| if ($sourceFile->getOwner()?->getUID() !== $currentUserId) { |
Check notice
Code scanning / Psalm
RedundantConditionGivenDocblockType
74a7f36 to
37df1b7
Compare
Signed-off-by: Louis Chemineau <[email protected]>
Backport of #43727
Warning, This backport's changes differ from the original and might be incomplete⚠️
Todo
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.