🐛 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:
1 parent
928d62a517
commit
71b5de91bf
1 file changed
+1
-1
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user