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:
Diffstat (limited to 'settings/apps.php')
-rw-r--r--settings/apps.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/settings/apps.php b/settings/apps.php
index 337a52fd416..672cb18775e 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -22,10 +22,7 @@
*/
require_once('../lib/base.php');
-if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' )){
- header( "Location: ".OC_Helper::linkTo( "", "index.php" ));
- exit();
-}
+OC_Util::checkAdminUser();
// Load the files we need
OC_Util::addStyle( "settings", "settings" );