🐛 Fix 403 response

Dumping string representations of the permission objects doesn't make
sense, and neither does rewriting the error description in the first
place.
This commit is contained in:
Gina Häußge committed 2019-12-09 19:06:53 +01:00
1 parent 928d62a517
commit 71b5de91bf
1 file changed
+1 -1
+1 -1
View File
@@ -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):