diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-04 13:04:58 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-04 13:04:58 +0200 |
commit | 13b1cd5cb83e6448df2410ebb3c164befb1fe9d2 (patch) | |
tree | 5086878006a67bedc8d1ef205bca6d93bde13cef /apps | |
parent | e387d90b299ee44e868b2ae146eaf7965d91f215 (diff) | |
download | nextcloud-server-13b1cd5cb83e6448df2410ebb3c164befb1fe9d2.tar.gz nextcloud-server-13b1cd5cb83e6448df2410ebb3c164befb1fe9d2.zip |
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>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 2 |
1 files changed, 1 insertions, 1 deletions
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, |