]> source.dussan.org Git - nextcloud-server.git/commitdiff
External: Use OC_Util::checkLoggedIn
authorBart Visscher <bartv@thisnet.nl>
Mon, 13 Feb 2012 23:13:04 +0000 (00:13 +0100)
committerBart Visscher <bartv@thisnet.nl>
Mon, 13 Feb 2012 23:13:04 +0000 (00:13 +0100)
apps/external/index.php

index 86b19abc10ef64eb4b552d55030785d9c12e9497..51cdc344bbfbddd4926211ba54e8a5e4a3240d54 100644 (file)
 
 require_once('../../lib/base.php');
 
-// Check if we are a user
-if( !OC_User::isLoggedIn()){
-       header( "Location: ".OC_Helper::linkTo( '', 'index.php' ));
-       exit();
-}
-
+OC_Util::checkLoggedIn();
 
 if(isset($_GET['id'])){