diff --git a/src/octoprint/server/api/settings.py b/src/octoprint/server/api/settings.py index 5b039984c..4139a3de7 100644 --- a/src/octoprint/server/api/settings.py +++ b/src/octoprint/server/api/settings.py @@ -340,7 +340,10 @@ def getSettings(): if len(plugin_settings): data["plugins"] = plugin_settings - if Permissions.WEBCAM.can() is True: + if Permissions.WEBCAM.can() or ( + settings().getBoolean(["server", "firstRun"]) + and not userManager.has_been_customized() + ): webcamsDict = get_webcams_as_dicts() data["webcam"] = { "webcamEnabled": s.getBoolean(["webcam", "webcamEnabled"]), @@ -393,6 +396,8 @@ def getSettings(): "snapshotWebcam": snapshotWebcam.config.name, } ) + else: + data["webcam"] = {} return jsonify(data)