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 <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-10-04 13:04:58 +02:00
parent 61fe59795f
commit 5c8719aa03
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class ShareAPIController extends OCSController {
IUserManager $userManager, IUserManager $userManager,
IRootFolder $rootFolder, IRootFolder $rootFolder,
IURLGenerator $urlGenerator, IURLGenerator $urlGenerator,
string $userId, string $userId = null,
IL10N $l10n, IL10N $l10n,
IConfig $config, IConfig $config,
IAppManager $appManager, IAppManager $appManager,