mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix check for reshare permissions
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
ed415726d3
commit
61485e3e60
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue