Some permission changes & fixes

This commit is contained in:
Gina Häußge committed 2018-04-12 16:34:17 +02:00
1 parent 1852578136
commit 5a91b8db48
24 files changed
+362 -247

No files matched your search

+2
View File
@@ -323,6 +323,7 @@ def printerSdCommand():
@api.route("/printer/sd", methods=["GET"])
@restricted_access
@Permissions.STATUS.require(403)
def printerSdState():
if not settings().getBoolean(["feature", "sdSupport"]):
@@ -396,6 +397,7 @@ def printerCommand():
return NO_CONTENT
@api.route("/printer/command/custom", methods=["GET"])
@restricted_access
@Permissions.CONTROL.require(403)
def getCustomControls():
# TODO: document me