External: Use OC_Util::checkLoggedIn
This commit is contained in:
parent
777804fac2
commit
a37bd93222
|
@ -23,12 +23,7 @@
|
||||||
|
|
||||||
require_once('../../lib/base.php');
|
require_once('../../lib/base.php');
|
||||||
|
|
||||||
// Check if we are a user
|
OC_Util::checkLoggedIn();
|
||||||
if( !OC_User::isLoggedIn()){
|
|
||||||
header( "Location: ".OC_Helper::linkTo( '', 'index.php' ));
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if(isset($_GET['id'])){
|
if(isset($_GET['id'])){
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue