1. Vladimir Mihailenco
  2. flask-principal-main

Commits

"danjac"  committed 4252432

pass perm. to exceptions

  • Participants
  • Parent commits e23b96c
  • Branches default

Comments (0)

Files changed (1)

File flaskext/principal.py

View file
         # check the permission here
         if not self.can():
             if self.http_exception:
-                abort(self.http_exception)
+                abort(self.http_exception, self.permission)
             raise PermissionDenied(self.permission)
 
     def __exit__(self, *exc):