External: Use OC_Util::checkLoggedIn

This commit is contained in:
Bart Visscher 2012-02-14 00:13:04 +01:00
parent 777804fac2
commit a37bd93222
1 changed files with 1 additions and 6 deletions

View File

@ -23,12 +23,7 @@
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'])){