summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-12-01 21:09:11 +0100
committerJoas Schilling <coding@schilljs.com>2021-12-01 21:09:11 +0100
commitbf7c9aa58cec0f6d67f64394d37f2f71e4c1e44c (patch)
treea073edf30384d51c8c55ae788d42e6848b7c4e4a /apps/files
parent44ecd0d1d5f77e6798c1dd08da8120ba86585758 (diff)
downloadnextcloud-server-bf7c9aa58cec0f6d67f64394d37f2f71e4c1e44c.tar.gz
nextcloud-server-bf7c9aa58cec0f6d67f64394d37f2f71e4c1e44c.zip
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')
-rw-r--r--apps/files/list.php2
-rw-r--r--apps/files/recentlist.php3
2 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/list.php b/apps/files/list.php
index 9d3e1a33b0f..09dc217139c 100644
--- a/apps/files/list.php
+++ b/apps/files/list.php
@@ -29,7 +29,7 @@ $userSession = \OC::$server->getUserSession();
// 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);
diff --git a/apps/files/recentlist.php b/apps/files/recentlist.php
index 2d250e1fc37..874ecca957c 100644
--- a/apps/files/recentlist.php
+++ b/apps/files/recentlist.php
@@ -23,8 +23,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-// Check if we are a user
-OC_Util::checkLoggedIn();
+
$config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();