Browse Source

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>
tags/v15.0.0beta1
Roeland Jago Douma 5 years ago
parent
commit
13b1cd5cb8
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/files_sharing/lib/Controller/ShareAPIController.php

+ 1
- 1
apps/files_sharing/lib/Controller/ShareAPIController.php View File

@@ -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,

Loading…
Cancel
Save