mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
New forbidden() plugin hook, closes #812
This commit is contained in:
parent
3ec5b1abf6
commit
549b1c2063
8 changed files with 100 additions and 20 deletions
|
|
@ -88,3 +88,8 @@ def canned_queries(datasette, database, actor):
|
|||
@hookspec
|
||||
def register_magic_parameters(datasette):
|
||||
"Return a list of (name, function) magic parameter functions"
|
||||
|
||||
|
||||
@hookspec
|
||||
def forbidden(datasette, request, message):
|
||||
"Custom response for a 403 forbidden error"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue