diff --git a/package/gluon-luci-admin/files/usr/lib/lua/luci/controller/admin/index.lua b/package/gluon-luci-admin/files/usr/lib/lua/luci/controller/admin/index.lua
index 8e91fd6d132db6dbb156ba3fdecdf72481ea24ca..1bf4d15547fc274e7629175e83832ad43b2d3916 100644
--- a/package/gluon-luci-admin/files/usr/lib/lua/luci/controller/admin/index.lua
+++ b/package/gluon-luci-admin/files/usr/lib/lua/luci/controller/admin/index.lua
@@ -19,6 +19,11 @@ function index()
   local uci_state = luci.model.uci.cursor_state()
   local configmode = uci_state:get_first("gluon-config-mode", "wizard", "running", "0") == "1"
 
+	-- Disable gluon-luci-admin when configmode is not enabled
+	if not configmode then
+		return
+	end
+
 	local root = node()
 	if not root.lock then
 		root.target = alias("admin")