Skip to content

Commit

Permalink
Allow userId to be null
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rullzer authored and weeman1337 committed Oct 28, 2018
1 parent 4465cc9 commit 3b9cdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/Controller/ShareAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function __construct(
IUserManager $userManager,
IRootFolder $rootFolder,
IURLGenerator $urlGenerator,
string $userId,
string $userId = null,
IL10N $l10n,
IConfig $config,
IAppManager $appManager,
Expand Down

0 comments on commit 3b9cdc1

Please sign in to comment.