From 13b1cd5cb83e6448df2410ebb3c164befb1fe9d2 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 4 Oct 2018 13:04:58 +0200 Subject: Allow userId to be null Fixes #10852 A quick hack. Still ensures some type safety however now also accepts null. Else we'd need to add a whole new layer of middlewares. This can only happen when a guest user wants to access a controller that requries the user_id. Signed-off-by: Roeland Jago Douma --- apps/files_sharing/lib/Controller/ShareAPIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 461c0e47320..308e7bbb742 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -113,7 +113,7 @@ class ShareAPIController extends OCSController { IUserManager $userManager, IRootFolder $rootFolder, IURLGenerator $urlGenerator, - string $userId, + string $userId = null, IL10N $l10n, IConfig $config, IAppManager $appManager, -- cgit v1.2.3