diff options
author | Joas Schilling <coding@schilljs.com> | 2019-08-21 16:15:23 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-11-12 17:13:38 +0100 |
commit | dcdbea54e60d13d2508b71ebdcb7992f2ae5ef34 (patch) | |
tree | 4157d8fbbec25f53ab99df3c7e495f8d8862fc36 /lib/private/Share20/Share.php | |
parent | 6f8c7885b6263b7e23f0e48c1376b7e67417be2c (diff) | |
download | nextcloud-server-dcdbea54e60d13d2508b71ebdcb7992f2ae5ef34.tar.gz nextcloud-server-dcdbea54e60d13d2508b71ebdcb7992f2ae5ef34.zip |
Respect the accepted flag for group and user shares
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Share20/Share.php')
-rw-r--r-- | lib/private/Share20/Share.php | 17 |
1 files changed, 17 insertions, 0 deletions
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 */ @@ -321,6 +323,21 @@ class Share implements \OCP\Share\IShare { /** * @inheritdoc */ + public function setStatus(int $status): IShare { + $this->status = $status; + return $this; + } + + /** + * @inheritdoc + */ + public function getStatus(): int { + return $this->status; + } + + /** + * @inheritdoc + */ public function setNote($note) { $this->note = $note; return $this; |