Clean up bogus whitespace changes/inconsistency
This commit is contained in:
1 parent
37f51ef983
commit
35d480bc48
3 files changed
+6
-6
No files matched your search
@@ -426,7 +426,7 @@ class OctoPrintFlaskResponse(flask.Response):
|
||||
|
||||
def passive_login():
|
||||
if octoprint.server.userManager.enabled:
|
||||
user = octoprint.server.userManager.login_user(flask_login.current_user)
|
||||
user = octoprint.server.userManager.login_user(flask_login.current_user)
|
||||
else:
|
||||
user = flask_login.current_user
|
||||
|
||||
|
||||
@@ -672,8 +672,8 @@ class CustomHTTPServer(tornado.httpserver.HTTPServer):
|
||||
|
||||
``default_max_body_size`` is the default maximum body size to apply if no specific one from ``max_body_sizes`` matches.
|
||||
"""
|
||||
def __init__(self, *args, **kwargs):
|
||||
pass
|
||||
def __init__(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
def initialize(self, request_callback, no_keep_alive=False, io_loop=None,
|
||||
xheaders=False, ssl_options=None, protocol=None,
|
||||
|
||||
@@ -444,15 +444,15 @@ class User(UserMixin):
|
||||
def get_name(self):
|
||||
return self._username
|
||||
|
||||
@property
|
||||
@property
|
||||
def is_active(self):
|
||||
return self._active
|
||||
|
||||
@property
|
||||
@property
|
||||
def is_user(self):
|
||||
return "user" in self._roles
|
||||
|
||||
@property
|
||||
@property
|
||||
def is_admin(self):
|
||||
return "admin" in self._roles
|
||||
|
||||
|
||||
Reference in new issue
Block a user