From dcdbea54e60d13d2508b71ebdcb7992f2ae5ef34 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 21 Aug 2019 16:15:23 +0200 Subject: Respect the accepted flag for group and user shares Signed-off-by: Joas Schilling --- lib/private/Share20/Share.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/private/Share20/Share.php') diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php index 9ce88b5af22..57b5304b102 100644 --- a/lib/private/Share20/Share.php +++ b/lib/private/Share20/Share.php @@ -58,6 +58,8 @@ class Share implements \OCP\Share\IShare { private $shareOwner; /** @var int */ private $permissions; + /** @var int */ + private $status; /** @var string */ private $note = ''; /** @var \DateTime */ @@ -318,6 +320,21 @@ class Share implements \OCP\Share\IShare { return $this->permissions; } + /** + * @inheritdoc + */ + public function setStatus(int $status): IShare { + $this->status = $status; + return $this; + } + + /** + * @inheritdoc + */ + public function getStatus(): int { + return $this->status; + } + /** * @inheritdoc */ -- cgit v1.2.3