diff --git a/apps/files/list.php b/apps/files/list.php
index 259713ae68ec9..54bdd814ada24 100644
--- a/apps/files/list.php
+++ b/apps/files/list.php
@@ -29,7 +29,7 @@
// TODO: move this to the generated config.js
/** @var IManager $shareManager */
$shareManager = \OC::$server->get(IManager::class);
-$publicUploadEnabled = $shareManager->shareApiLinkAllowPublicUpload() ? 'yes' : 'no';;
+$publicUploadEnabled = $shareManager->shareApiLinkAllowPublicUpload() ? 'yes' : 'no';
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
$isIE = OC_Util::isIe();
diff --git a/apps/files/recentlist.php b/apps/files/recentlist.php
index 899591013e2e5..daa69a374ef2d 100644
--- a/apps/files/recentlist.php
+++ b/apps/files/recentlist.php
@@ -23,8 +23,7 @@
* along with this program. If not, see .
*
*/
-// Check if we are a user
-OC_Util::checkLoggedIn();
+
$config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();
diff --git a/apps/files_external/list.php b/apps/files_external/list.php
index 0107bf92e6fbf..00f69bf881fd9 100644
--- a/apps/files_external/list.php
+++ b/apps/files_external/list.php
@@ -23,8 +23,7 @@
* along with this program. If not, see
*
*/
-// Check if we are a user
-OC_Util::checkLoggedIn();
+
$config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();
diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php
index 759f87179a1e5..875d4251c98bd 100644
--- a/apps/files_sharing/list.php
+++ b/apps/files_sharing/list.php
@@ -28,8 +28,6 @@
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();
diff --git a/apps/files_trashbin/list.php b/apps/files_trashbin/list.php
index 9ee833319fce4..ec348a227f5ad 100644
--- a/apps/files_trashbin/list.php
+++ b/apps/files_trashbin/list.php
@@ -24,8 +24,6 @@
* along with this program. If not, see
*
*/
-// Check if we are a user
-OC_Util::checkLoggedIn();
$config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();
diff --git a/apps/systemtags/list.php b/apps/systemtags/list.php
index d7ba2c9eed9ac..b5bbf223f29ac 100644
--- a/apps/systemtags/list.php
+++ b/apps/systemtags/list.php
@@ -20,23 +20,6 @@
* along with this program. If not, see
*
*/
-// WARNING: this should be moved to proper AppFramework handling
-// Check if we are a user
-if (!\OC::$server->getUserSession()->isLoggedIn()) {
- header('Location: ' . \OC::$server->getURLGenerator()->linkToRoute(
- 'core.login.showLoginForm',
- [
- 'redirect_url' => \OC::$server->getRequest()->getRequestUri(),
- ]
- )
- );
- exit();
-}
-// Redirect to 2FA challenge selection if 2FA challenge was not solved yet
-if (\OC::$server->getTwoFactorAuthManager()->needsSecondFactor(\OC::$server->getUserSession()->getUser())) {
- header('Location: ' . \OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.selectChallenge'));
- exit();
-}
$tmpl = new OCP\Template('systemtags', 'list', '');
$tmpl->printPage();