fix check for reshare permissions

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
pull/9345/head
Bjoern Schiessle 7 years ago
parent ed415726d3
commit 61485e3e60
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
  1. 2
      apps/federatedfilesharing/lib/ocm/CloudFederationProviderFiles.php

@ -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);

Loading…
Cancel
Save