From 9c3b552aa82600937f720958cecbd5c6ac7c879b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 14 Jan 2020 11:24:22 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20unused=20leftover=20cod?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/access/groups.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/octoprint/access/groups.py b/src/octoprint/access/groups.py index ae42d4307..8108b28ce 100644 --- a/src/octoprint/access/groups.py +++ b/src/octoprint/access/groups.py @@ -20,31 +20,6 @@ from octoprint.access import ADMIN_GROUP, USER_GROUP, GUEST_GROUP, READONLY_GROU from octoprint.access.permissions import Permissions, OctoPrintPermission from octoprint.vendor.flask_principal import Need, Permission -DEFAULT_ADMIN_PERMISSIONS = [Permissions.ADMIN] -"""Default admin permissions are the legacy permissions from before 1.4.0""" - -DEFAULT_USER_PERMISSIONS = [Permissions.STATUS, - Permissions.CONNECTION, - Permissions.WEBCAM, - Permissions.FILES_UPLOAD, - Permissions.FILES_DOWNLOAD, - Permissions.FILES_DELETE, - Permissions.FILES_SELECT, - Permissions.PRINT, - Permissions.MONITOR_TERMINAL, - Permissions.CONTROL, - Permissions.SLICE, - Permissions.TIMELAPSE_LIST, - Permissions.TIMELAPSE_ADMIN] -"""Default user permissions are the legacy permissions from before 1.4.0""" - -DEFAULT_GUEST_PERMISSIONS = [Permissions.STATUS, - Permissions.WEBCAM, - Permissions.FILES_DOWNLOAD, - Permissions.TIMELAPSE_LIST, - Permissions.MONITOR_TERMINAL] -"""Default guest permissions are the legacy permissions from before 1.4.0""" - GroupNeed = partial(Need, 'group') GroupNeed.__doc__ = """A need with the method preset to `"group"`."""