revert(exception): keep throwing an exception for now
Signed-off-by: Samuel <faust64@gmail.com>
This commit is contained in:
parent
22ddcfa740
commit
c49cff453c
|
@ -530,7 +530,7 @@ class Manager implements IManager {
|
||||||
* Check for pre share requirements for user shares
|
* Check for pre share requirements for user shares
|
||||||
*
|
*
|
||||||
* @param IShare $share
|
* @param IShare $share
|
||||||
* @throws GenericShareException
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
protected function userCreateChecks(IShare $share) {
|
protected function userCreateChecks(IShare $share) {
|
||||||
// Check if we can share with group members only
|
// Check if we can share with group members only
|
||||||
|
@ -544,7 +544,8 @@ class Manager implements IManager {
|
||||||
);
|
);
|
||||||
if (empty($groups)) {
|
if (empty($groups)) {
|
||||||
$message_t = $this->l->t('Sharing is only allowed with group members');
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue