summaryrefslogtreecommitdiffstats
path: root/lib/Controller/NavigationController.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-11-28 14:40:45 -0100
committerGitHub <noreply@github.com>2018-11-28 14:40:45 -0100
commitf08865eeedffd8054dbfc93c69f396a346077eee (patch)
treed5ec26280f587879fe83421c471e91e873979eeb /lib/Controller/NavigationController.php
parent107c49d1412fee86bb30d03fd3e65aebc2de38f4 (diff)
parent13d49b6ebe27df5d6a69e9d5940f92946cc93817 (diff)
Merge pull request #69 from nextcloud-gmbh/small-fix
small fixes
Diffstat (limited to 'lib/Controller/NavigationController.php')
-rw-r--r--lib/Controller/NavigationController.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Controller/NavigationController.php b/lib/Controller/NavigationController.php
index 864b9eb8..37f7050f 100644
--- a/lib/Controller/NavigationController.php
+++ b/lib/Controller/NavigationController.php
@@ -125,7 +125,6 @@ class NavigationController extends Controller {
* @NoSubAdminRequired
*
* @return TemplateResponse
- * @throws NoUserException
*/
public function navigate($path = ''): TemplateResponse {
$data = [
@@ -162,6 +161,10 @@ class NavigationController extends Controller {
$data['serverData']['firstrun'] = true;
} catch (AccountAlreadyExistsException $e) {
// we do nothing
+ } catch (NoUserException $e) {
+ // well, should not happens
+ } catch (SocialAppConfigException $e) {
+ // neither.
}
return new TemplateResponse(Application::APP_NAME, 'main', $data);
@@ -231,7 +234,6 @@ class NavigationController extends Controller {
* @param $username
*
* @return RedirectResponse|PublicTemplateResponse
- * @throws NoUserException
*/
public function public($username) {
if (\OC::$server->getUserSession()