Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-12-01 23:09:11 +0300
committerJoas Schilling <coding@schilljs.com>2021-12-01 23:09:11 +0300
commitbf7c9aa58cec0f6d67f64394d37f2f71e4c1e44c (patch)
treea073edf30384d51c8c55ae788d42e6848b7c4e4a /apps/files_sharing/list.php
parent44ecd0d1d5f77e6798c1dd08da8120ba86585758 (diff)
list.php files are only invoked via ViewController and APIController
Both of them actually check that the user is logged in before and also the list.php files themselves would break with getUserSession()->getUser()->getUID() which they contain. Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/list.php')
-rw-r--r--apps/files_sharing/list.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php
index f9f6ddd3bc5..edcfdc180a6 100644
--- a/apps/files_sharing/list.php
+++ b/apps/files_sharing/list.php
@@ -28,8 +28,6 @@ use OCA\Files\Event\LoadSidebar;
use OCA\Viewer\Event\LoadViewer;
use OCP\EventDispatcher\GenericEvent;
-// Check if we are a user
-OC_Util::checkLoggedIn();
$config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();
$legacyEventDispatcher = \OC::$server->getEventDispatcher();