Explorar o código

Update system.info.go

Fixed Updates tab permission issues
Toby Chui %!s(int64=3) %!d(string=hai) anos
pai
achega
57a0f6ca66
Modificáronse 1 ficheiros con 6 adicións e 5 borrados
  1. 6 5
      src/system.info.go

+ 6 - 5
src/system.info.go

@@ -116,11 +116,12 @@ func SystemInfoInit() {
 		if updates.CheckLauncherPortResponsive() {
 			//Launcher port is responsive. Assume launcher exists
 			registerSetting(settingModule{
-				Name:     "Updates",
-				Desc:     "Perform ArozOS Updates",
-				IconPath: "SystemAO/updates/img/update.png",
-				Group:    "Info",
-				StartDir: "SystemAO/updates/index.html",
+				Name:         "Updates",
+				Desc:         "Perform ArozOS Updates",
+				IconPath:     "SystemAO/updates/img/update.png",
+				Group:        "Info",
+				StartDir:     "SystemAO/updates/index.html",
+				RequireAdmin: true,
 			})
 
 			//Register Update Functions