Kaynağa Gözat

Fixed Updates tab permission error issue

Toby Chui 3 yıl önce
ebeveyn
işleme
6e8b84e74a
2 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 6 5
      system.info.go
  2. 0 1
      web/Photo/photo.js

+ 6 - 5
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

+ 0 - 1
web/Photo/photo.js

@@ -284,7 +284,6 @@ function renderImageList(object){
 function ShowModal(){
     $('.ui.modal.viewer').modal({
         onHide: function(){
-            
             ao_module_setWindowTitle("Photo");
             setTimeout(function(){
                 $("#fullImage").attr("src","img/loading.png");