diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-06-05 19:54:42 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-02 11:29:29 +0200 |
commit | 61485e3e600d5a9359ac215602c4778f00d38823 (patch) | |
tree | f159f9ac44f2ec71715b3d5844e5f3f6a09cd342 /apps/federatedfilesharing/lib/ocm/CloudFederationProviderFiles.php | |
parent | ed415726d35b019ef085330ee8573d00415bb771 (diff) | |
download | nextcloud-server-61485e3e600d5a9359ac215602c4778f00d38823.tar.gz nextcloud-server-61485e3e600d5a9359ac215602c4778f00d38823.zip |
fix check for reshare permissions
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/federatedfilesharing/lib/ocm/CloudFederationProviderFiles.php')
-rw-r--r-- | apps/federatedfilesharing/lib/ocm/CloudFederationProviderFiles.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/ocm/CloudFederationProviderFiles.php b/apps/federatedfilesharing/lib/ocm/CloudFederationProviderFiles.php index 0f28abc9451..ae2e12bb894 100644 --- a/apps/federatedfilesharing/lib/ocm/CloudFederationProviderFiles.php +++ b/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); |