diff options
Diffstat (limited to 'settings/settings.php')
-rw-r--r-- | settings/settings.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/settings/settings.php b/settings/settings.php index 724cf63aaf7..b08cb08db09 100644 --- a/settings/settings.php +++ b/settings/settings.php @@ -6,10 +6,7 @@ */ require_once('../lib/base.php'); -if( !OC_User::isLoggedIn()){ - header( "Location: ".OC_Helper::linkTo( "", "index.php" )); - exit(); -} +OC_Util::checkLoggedIn(); OC_Util::addStyle( "settings", "settings" ); OC_App::setActiveNavigationEntry( "settings" ); @@ -20,4 +17,4 @@ $tmpl->assign('forms',array()); foreach($forms as $form){ $tmpl->append('forms',$form); } -$tmpl->printPage();
\ No newline at end of file +$tmpl->printPage(); |