From 71b5de91bf1619fff01738554d2f6871d51d3544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 9 Dec 2019 19:05:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20403=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dumping string representations of the permission objects doesn't make sense, and neither does rewriting the error description in the first place. --- src/octoprint/vendor/flask_principal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/vendor/flask_principal.py b/src/octoprint/vendor/flask_principal.py index dd7908df1..e9f9f003e 100644 --- a/src/octoprint/vendor/flask_principal.py +++ b/src/octoprint/vendor/flask_principal.py @@ -204,7 +204,7 @@ class IdentityContext(object): # check the permission here if not self.can(): if self.http_exception: - abort(self.http_exception, self.permission) + abort(self.http_exception) raise PermissionDenied(self.permission) def __exit__(self, *args):