diff options
Diffstat (limited to 'admin/appinfo/app.php')
-rw-r--r-- | admin/appinfo/app.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/appinfo/app.php b/admin/appinfo/app.php index f4a36160936..a0ee0a0e55b 100644 --- a/admin/appinfo/app.php +++ b/admin/appinfo/app.php @@ -1,7 +1,7 @@ <?php OC_APP::register( array( "order" => 1, "id" => "admin", "name" => "Administration" )); -if( OC_USER::ingroup( $_SESSION['username'], 'admin' )) +if( OC_GROUP::inGroup( $_SESSION['user_id'], 'admin' )) { OC_APP::addNavigationEntry( array( "id" => "admin_index", "order" => 1, "href" => OC_HELPER::linkTo( "admin", "index.php" ), "icon" => OC_HELPER::imagePath( "admin", "navicon.png" ), "name" => "Administration" )); } |