Set user manager on components dict for plugins
This commit is contained in:
parent
bf6ce92be2
commit
7d3440b744
1 changed files with 1 additions and 0 deletions
|
|
@ -234,6 +234,7 @@ class Server(object):
|
|||
userManager = octoprint.users.FilebasedUserManager()
|
||||
finally:
|
||||
userManager.enabled = self._settings.getBoolean(["accessControl", "enabled"])
|
||||
components["user_manager"] = userManager
|
||||
|
||||
def octoprint_plugin_inject_factory(name, implementation):
|
||||
if not isinstance(implementation, octoprint.plugin.OctoPrintPlugin):
|
||||
|
|
|
|||
Loading…
Reference in a new issue