Close request_access dialogs on other open connections when a decision is made

Once a decision is made on one connection (browser window), dialogs on other connections are no longer relevant.
This commit is contained in:
fieldOfView committed 2018-11-02 09:22:30 +01:00
1 parent e234c6146e
commit e30e129e2a
1 file changed
+6
@@ -157,6 +157,12 @@ class AppKeysPlugin(octoprint.plugin.AssetPlugin,
if not result:
return flask.abort(404)
# Close access_request dialog for this request on all open OctoPrint connections
self._plugin_manager.send_plugin_message(self._identifier, dict(
type="end_request",
user_token=user_token
))
return NO_CONTENT
def is_blueprint_protected(self):