Skip to content

Relax rootfolder check - #22683

Merged
DeepDiver1975 merged 1 commit into
masterfrom
fix_22682
Feb 29, 2016
Merged

DeepDiver1975 merged 1 commit into
masterfrom
fix_22682

Conversation

@rullzer

@rullzer rullzer commented Feb 26, 2016

Copy link
Copy Markdown
Contributor

Fixes #22682

  • Updated unit tests
  • Added intergration test

The original test was comparing the wrong object when modifying reshares.
Now there is an intergration test to ensure this will continue to work.

CC: @MorrisJobke @nickvergessen @PVince81 @schiesbn

* Updated unit tests
* Added intergration test

// And you can't share your rootfolder
if ($this->rootFolder->getUserFolder($share->getSharedBy())->isSubNode($share->getNode()) === false) {
if ($this->rootFolder->getUserFolder($share->getSharedBy())->getPath() === $share->getNode()->getPath()) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can't we compare the Node? Or are they different?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No they are different objects.

@MorrisJobke

Copy link
Copy Markdown
Contributor

Tested and works 👍

1 similar comment
@oparoz

oparoz commented Feb 28, 2016

Copy link
Copy Markdown
Contributor

Tested and works 👍

@lock

lock Bot commented Aug 7, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not possible to update reshares as initiator

5 participants