Code Duplication    Length = 10-10 lines in 2 locations

lib/private/app.php 2 locations

@@ 451-460 (lines=10) @@
448
			);
449
450
			//SubAdmins are also allowed to access user management
451
			if (OC_SubAdmin::isSubAdmin(OC_User::getUser())) {
452
				// admin users menu
453
				$settings[] = array(
454
					"id" => "core_users",
455
					"order" => 2,
456
					"href" => OC_Helper::linkToRoute("settings_users"),
457
					"name" => $l->t("Users"),
458
					"icon" => OC_Helper::imagePath("settings", "users.svg")
459
				);
460
			}
461
462
			// if the user is an admin
463
			if (OC_User::isAdminUser(OC_User::getUser())) {
@@ 463-472 (lines=10) @@
460
			}
461
462
			// if the user is an admin
463
			if (OC_User::isAdminUser(OC_User::getUser())) {
464
				// admin settings
465
				$settings[] = array(
466
					"id" => "admin",
467
					"order" => 1000,
468
					"href" => OC_Helper::linkToRoute("settings_admin"),
469
					"name" => $l->t("Admin"),
470
					"icon" => OC_Helper::imagePath("settings", "admin.svg")
471
				);
472
			}
473
		}
474
475
		$navigation = self::proceedNavigation($settings);