mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(sharing): Don't redirect when accepting a share failed
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
17d60a4af0
commit
2c560b0837
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ class AcceptController extends Controller {
|
|||
try {
|
||||
$share = $this->shareManager->acceptShare($share, $user->getUID());
|
||||
} catch (\Exception $e) {
|
||||
// Just ignore
|
||||
return new NotFoundResponse();
|
||||
}
|
||||
|
||||
$url = $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $share->getNode()->getId()]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue