From 61485e3e600d5a9359ac215602c4778f00d38823 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 5 Jun 2018 19:54:42 +0200 Subject: fix check for reshare permissions Signed-off-by: Bjoern Schiessle --- apps/federatedfilesharing/lib/ocm/CloudFederationProviderFiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/federatedfilesharing') 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); -- cgit v1.2.3