fix check for reshare permissions

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2018-06-05 19:54:42 +02:00
parent ed415726d3
commit 61485e3e60
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ class CloudFederationProviderFiles implements ICloudFederationProvider {
$this->verifyShare($share, $token);
// check if re-sharing is allowed
if ($share->getPermissions() | ~Constants::PERMISSION_SHARE) {
if ($share->getPermissions() & Constants::PERMISSION_SHARE) {
// the recipient of the initial share is now the initiator for the re-share
$share->setSharedBy($share->getSharedWith());
$share->setSharedWith($shareWith);