Skip to content
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

allow editing single files shared as public link #3231

Merged
merged 1 commit into from
Jan 25, 2017

Conversation

schiessle
Copy link
Member

allow editing single files shared as public link

cc @blizzz

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
@mention-bot
Copy link

@schiessle, thanks for your PR! By analyzing the history of the files in this pull request, we identified @blizzz, @rullzer and @icewind1991 to be potential reviewers.

Copy link
Member

@blizzz blizzz left a comment

Choose a reason for hiding this comment

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

works

@@ -668,6 +668,7 @@ public function updateShare(
\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_CREATE | \OCP\Constants::PERMISSION_UPDATE, // legacy
\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_CREATE | \OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_DELETE, // correct
\OCP\Constants::PERMISSION_CREATE, // hidden file list
\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_UPDATE, // allow to edit single files
Copy link
Member

Choose a reason for hiding this comment

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

I remember something with "update is delete+create on dav".
So this needs to be tested with the problematic app before merging....

Copy link
Member Author

Choose a reason for hiding this comment

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

Seems that the this is not the case for Collabora, @LukasReschke can you test it? Thanks!

Copy link
Member

@LukasReschke LukasReschke Jan 25, 2017

Choose a reason for hiding this comment

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

Collabora doesn't go via DAV but the nodes API directly. So it works.

@nickvergessen
Copy link
Member

Just to be sure I shall try to smash this

@nickvergessen
Copy link
Member

Smashbox passed ✅

@schiessle schiessle merged commit 5873a0a into master Jan 25, 2017
@schiessle schiessle deleted the allow-editing-public-links branch January 25, 2017 14:36
@nickvergessen nickvergessen mentioned this pull request Jan 25, 2017
59 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants