summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-04 22:06:20 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit1a582f2a7a125d3d9c5c4c295132acb25d1ae03b (patch)
tree85003a5411d4f30070c8629c27c4eeada3cb2aab /lib
parentd92d77c066725981a1c323d85d2015411c74a9fe (diff)
🚑 Fix ItemController::share
- call correct ShareService function - correct ShareService className annotation Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/ItemController.php2
-rw-r--r--lib/Service/ShareService.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ItemController.php b/lib/Controller/ItemController.php
index e3ef4b9e5..ec56a9e33 100644
--- a/lib/Controller/ItemController.php
+++ b/lib/Controller/ItemController.php
@@ -336,7 +336,7 @@ class ItemController extends Controller
public function share($itemId, $shareWithId)
{
try {
- $this->shareService->share(
+ $this->shareService->shareItemWithUser(
$this->getUserId(),
$itemId,
$shareWithId
diff --git a/lib/Service/ShareService.php b/lib/Service/ShareService.php
index db7f73c7e..66417452d 100644
--- a/lib/Service/ShareService.php
+++ b/lib/Service/ShareService.php
@@ -19,7 +19,7 @@ use OCA\News\Service\Exceptions\ServiceNotFoundException;
use OCP\AppFramework\Db\DoesNotExistException;
/**
- * Class ImportService
+ * Class ShareService
*
* @package OCA\News\Service
*/