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

take share by mail into consideration if we calculate the access list #3843

Merged
merged 1 commit into from
Mar 15, 2017

Conversation

schiessle
Copy link
Member

take share by mail into consideration if we calculate the access list to allow people to access encrypted files shared by mail.

cc @rullzer we still use the old API here, am I right that we don't have a similar function for the new share API? I only found, which looks scary https://github.com/nextcloud/server/blob/master/lib/private/Share20/Manager.php#L1194 😉

fix #3751

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

rullzer commented Mar 14, 2017

@schiessle there is #2834 but that has speed issues (because this one actually calculates the correct paths for all users).

@schiessle
Copy link
Member Author

Steps to test:

  • Enable encryption
  • upload/create a file so that it is encrypted
  • share file by mail
  • try to access it

-> before it will fail, with this PR it should work

anyone wants to review it... @nickvergessen @rullzer @nextcloud/encryption ?

Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

Solution looks good and is simple enough for a backport

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.

Encryption module "Default encryption module" is not able to read [...]
4 participants