fix check for reshare permissions
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
ed415726d3
commit
61485e3e60
|
@ -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…
Reference in New Issue