Added permission check to every view, closes #808

This commit is contained in:
Simon Willison 2020-06-06 22:30:36 -07:00
commit 86dec9e8ff
13 changed files with 220 additions and 2 deletions

View file

@ -13,6 +13,10 @@ class NotFound(Exception):
pass
class Forbidden(Exception):
pass
class Request:
def __init__(self, scope, receive):
self.scope = scope