-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Check share status when touching versions #43727
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
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
|
/backport to stable28 |
|
/backport to stable27 |
|
/backport to stable26 |
d4726e9 to
7f6ff98
Compare
| $currentUserId = $this->userFolder?->getOwner()?->getUID(); | ||
| // 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) { |
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
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
| // Allow view-only plugin for webdav requests | ||
| $this->server->addPlugin(new ViewOnlyPlugin( | ||
| $logger | ||
| \OC::$server->getUserFolder(), |
Check notice
Code scanning / Psalm
DeprecatedMethod
| } | ||
|
|
||
| if ($sourceFile->getOwner()?->getUID() !== $currentUserId) { | ||
| $nodes = $this->rootFolder->getUserFolder($currentUserId)->getById($sourceFile->getId()); |
Check notice
Code scanning / Psalm
PossiblyNullArgument
Signed-off-by: Louis Chemineau <[email protected]>
7f6ff98 to
18b32e8
Compare
|
/backport 8e95d0f to stable25 |
No description provided.