Skip to content

Commit

Permalink
Restricted API Token to Admin only on API
Browse files Browse the repository at this point in the history
  • Loading branch information
jslay88 committed May 9, 2018
1 parent 0412278 commit 034a7e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ insert_final_newline = true
trim_trailing_whitespace = true

[**.py]
indent_style = tab
indent_style = space

[**.js]
indent_style = space
Expand Down
5 changes: 5 additions & 0 deletions octoprint_dropbox_timelapse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ def get_settings_defaults(self):
delete_afer_upload=False
)

def get_settings_restricted_paths(self):
return dict(
admin=[['api_token'], ]
)

def get_template_configs(self):
return [
dict(type='settings', custom_bindings=False, template='dropbox_timelapse_settings.jinja2')
Expand Down

0 comments on commit 034a7e0

Please sign in to comment.