Skip to content

Commit

Permalink
access control: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aerickson committed Dec 2, 2018
1 parent eaec38e commit 2cd1e6d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions octoprint_signalnotifier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ class SignalNotifierPlugin(octoprint.plugin.EventHandlerPlugin,
#~~ SettingsPlugin
def get_settings_defaults(self):
return dict(
enabled=False,
path="signal-cli",
dict(admin_only=dict(sender="",
recipient=""),
message_format=dict(
body="OctoPrint@{host}: Job complete: {filename} done printing after {elapsed_time}"
)
admin_only=dict(
sender="",
recipient=""
),
user_only=dict(),
never=dict(
enabled=False,
path="signal-cli",
message_format=dict(
body="OctoPrint@{host}: Job complete: {filename} done printing after {elapsed_time}"
)
),
)

def get_settings_version(self):
Expand Down

0 comments on commit 2cd1e6d

Please sign in to comment.