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:
authorBart Visscher <bart@thisnet.nl>2011-09-18 23:31:56 +0400
committerBart Visscher <bart@thisnet.nl>2011-09-18 23:31:56 +0400
commite990ef35426b7dde59ec74eb1568a8cfbd69f316 (patch)
tree9b4a276885378540812ce93c3cddcc73a00ba3b0 /apps/files_sharing/list.php
parent8966ed5a004a9b830f093355170d381566d58554 (diff)
Move some common code to OC_Util
Created the following function: - checkLoggedIn - checkAdminUser - redirectToDefaultPage
Diffstat (limited to 'apps/files_sharing/list.php')
-rw-r--r--apps/files_sharing/list.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php
index 0a11f438eb7..a5f99f38041 100644
--- a/apps/files_sharing/list.php
+++ b/apps/files_sharing/list.php
@@ -23,10 +23,7 @@
require_once('../../lib/base.php');
require_once('lib_share.php');
-if (!OC_User::isLoggedIn()){
- header( "Location: ".OC_HELPER::linkTo( "index.php" ));
- exit();
-}
+OC_Util::checkLoggedIn();
OC_App::setActiveNavigationEntry("files_sharing_list");
@@ -36,4 +33,4 @@ $tmpl = new OC_Template("files_sharing", "list", "user");
$tmpl->assign("shared_items", OC_Share::getMySharedItems());
$tmpl->printPage();
-?> \ No newline at end of file
+?>