diff options
author | Samuel <faust64@gmail.com> | 2021-02-05 12:52:59 +0100 |
---|---|---|
committer | Samuel <faust64@gmail.com> | 2021-02-05 12:52:59 +0100 |
commit | 5f8dfa8e4c3c4ed4e9edf38d14719e2fd7570464 (patch) | |
tree | c6b289955b0dd9c14f9d5e5743a5b4337292f0ca /lib/private/Share20/Manager.php | |
parent | 59e43b48282894f74fe8cd381ccdf0b1bb8cc536 (diff) | |
download | nextcloud-server-5f8dfa8e4c3c4ed4e9edf38d14719e2fd7570464.tar.gz nextcloud-server-5f8dfa8e4c3c4ed4e9edf38d14719e2fd7570464.zip |
revert(exception): keep throwing an exception for now
Signed-off-by: Samuel <faust64@gmail.com>
Diffstat (limited to 'lib/private/Share20/Manager.php')
-rw-r--r-- | lib/private/Share20/Manager.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index cbe79ddaeb9..e1e3e45064e 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -529,7 +529,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 @@ -543,7 +543,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); } } |