From c49cff453c3b699960eaacad8f8fc508d5676e94 Mon Sep 17 00:00:00 2001 From: Samuel Date: Fri, 5 Feb 2021 12:52:59 +0100 Subject: [PATCH] revert(exception): keep throwing an exception for now Signed-off-by: Samuel --- lib/private/Share20/Manager.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index b021cedbcb..1d8149e5c9 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -530,7 +530,7 @@ class Manager implements IManager { * Check for pre share requirements for user shares * * @param IShare $share - * @throws GenericShareException + * @throws \Exception */ protected function userCreateChecks(IShare $share) { // Check if we can share with group members only @@ -544,7 +544,8 @@ class Manager implements IManager { ); if (empty($groups)) { $message_t = $this->l->t('Sharing is only allowed with group members'); - throw new GenericShareException($message_t, $message_t, 404); + // throw new GenericShareException($message_t, $message_t, 404); + throw new \Exception($message_t); } }